{"action":"created","issue":{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/287","labels_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/287/comments","events_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/287/events","html_url":"https://github.com/ghiden/angucomplete-alt/issues/287","id":113049670,"number":287,"title":"cannot call setValidity on undefined","user":{"login":"axos88","id":1281218,"avatar_url":"https://avatars.githubusercontent.com/u/1281218?v=3","gravatar_id":"","url":"https://api.github.com/users/axos88","html_url":"https://github.com/axos88","followers_url":"https://api.github.com/users/axos88/followers","following_url":"https://api.github.com/users/axos88/following{/other_user}","gists_url":"https://api.github.com/users/axos88/gists{/gist_id}","starred_url":"https://api.github.com/users/axos88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axos88/subscriptions","organizations_url":"https://api.github.com/users/axos88/orgs","repos_url":"https://api.github.com/users/axos88/repos","events_url":"https://api.github.com/users/axos88/events{/privacy}","received_events_url":"https://api.github.com/users/axos88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-23T16:02:08Z","updated_at":"2015-11-04T08:01:47Z","closed_at":"2015-10-24T16:55:44Z","body":"Hello,\r\n\r\nMy complete tag is defined like this:\r\n\r\n```\r\n            <angucomplete-alt\r\n                    placeholder=\"Select user...\"\r\n                    pause=\"100\"\r\n                    selected-object=\"setCustomerUser\"\r\n                    local-data=\"customerusers\"\r\n                    search-fields=\"login\"\r\n                    title-field=\"login\"\r\n                    description-field=\"name\"\r\n                    minlength=\"0\"\r\n                    field-required=\"true\"\r\n                    auto-match=\"true\"\r\n                    input-name=\"user\"\r\n                    input-class=\"form-control\"></angucomplete-alt>\r\n```\r\n\r\nWhen I change the page using ngRoute, i get the following exception (but the app continues to run okay):\r\n\r\n```\r\nTypeError: Cannot read property '$setValidity' of undefined\r\n    at handleRequired (angucomplete-alt.js:243)\r\n    at angucomplete-alt.js:766\r\n    at Scope.parent.$get.Scope.$broadcast (angular.js:16311)\r\n    at Scope.parent.$get.Scope.$destroy (angular.js:15923)\r\n    at cleanupLastView (angular-route.js:909)\r\n    at angular-route.js:942\r\n    at publicLinkFn (angular.js:7554)\r\n    at name.$get.boundTranscludeFn (angular.js:7699)\r\n    at controllersBoundTransclude (angular.js:8316)\r\n    at update (angular-route.js:935)\r\n```\r\n\r\nThis is on a Chrome running on MacOS X"},"comment":{"url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/comments/153626425","html_url":"https://github.com/ghiden/angucomplete-alt/issues/287#issuecomment-153626425","issue_url":"https://api.github.com/repos/ghiden/angucomplete-alt/issues/287","id":153626425,"user":{"login":"axos88","id":1281218,"avatar_url":"https://avatars.githubusercontent.com/u/1281218?v=3","gravatar_id":"","url":"https://api.github.com/users/axos88","html_url":"https://github.com/axos88","followers_url":"https://api.github.com/users/axos88/followers","following_url":"https://api.github.com/users/axos88/following{/other_user}","gists_url":"https://api.github.com/users/axos88/gists{/gist_id}","starred_url":"https://api.github.com/users/axos88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axos88/subscriptions","organizations_url":"https://api.github.com/users/axos88/orgs","repos_url":"https://api.github.com/users/axos88/repos","events_url":"https://api.github.com/users/axos88/events{/privacy}","received_events_url":"https://api.github.com/users/axos88/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T08:01:47Z","updated_at":"2015-11-04T08:01:47Z","body":"You don't have a name on your angucomplete field."}}