{"action":"opened","issue":{"url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/36","labels_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/36/comments","events_url":"https://api.github.com/repos/ghiscoding/angular-validation/issues/36/events","html_url":"https://github.com/ghiscoding/angular-validation/issues/36","id":76862174,"number":36,"title":"Script order matters","user":{"login":"aaronbc","id":6535998,"avatar_url":"https://avatars.githubusercontent.com/u/6535998?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronbc","html_url":"https://github.com/aaronbc","followers_url":"https://api.github.com/users/aaronbc/followers","following_url":"https://api.github.com/users/aaronbc/following{/other_user}","gists_url":"https://api.github.com/users/aaronbc/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronbc/subscriptions","organizations_url":"https://api.github.com/users/aaronbc/orgs","repos_url":"https://api.github.com/users/aaronbc/repos","events_url":"https://api.github.com/users/aaronbc/events{/privacy}","received_events_url":"https://api.github.com/users/aaronbc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T21:24:53Z","updated_at":"2015-05-15T21:24:53Z","closed_at":null,"body":"It looks like the order that the scripts are included matters.  The documentation highlights the correct order:\r\nvalidation-directive.js\r\nvalidation-service.js\r\nvalidation-common.js\r\nvalidation-rules.js\r\n\r\nBut the bower.json file has a different order which for some reason prevents angular from finding the validation module.  This is an issue when using a tool like grunt-wiredep which automatically inject script includes based on the bower.json files."}}