{"action":"created","issue":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/667","repository_url":"https://api.github.com/repos/mbenford/ngTagsInput","labels_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/667/comments","events_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/667/events","html_url":"https://github.com/mbenford/ngTagsInput/issues/667","id":155692481,"number":667,"title":"Trying to create auto-complete","user":{"login":"RonenMars","id":7413072,"avatar_url":"https://avatars.githubusercontent.com/u/7413072?v=3","gravatar_id":"","url":"https://api.github.com/users/RonenMars","html_url":"https://github.com/RonenMars","followers_url":"https://api.github.com/users/RonenMars/followers","following_url":"https://api.github.com/users/RonenMars/following{/other_user}","gists_url":"https://api.github.com/users/RonenMars/gists{/gist_id}","starred_url":"https://api.github.com/users/RonenMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonenMars/subscriptions","organizations_url":"https://api.github.com/users/RonenMars/orgs","repos_url":"https://api.github.com/users/RonenMars/repos","events_url":"https://api.github.com/users/RonenMars/events{/privacy}","received_events_url":"https://api.github.com/users/RonenMars/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-19T09:30:54Z","updated_at":"2016-06-28T09:31:03Z","closed_at":null,"body":"Hi,\r\n\r\nIt looks like that:\r\nHTML:\r\n```\r\n    <div class=\"row expanded columns RowGray\" style=\"margin-bottom: 2%;\">\r\n        <div class=\"medium-2 columns\">סינון:</div>\r\n        <div class=\"medium-10 columns\">על פי מנחה: <tags-input ng-model=\"lecturerFilter\" id=\"lecturerFilter\" add-on-paste=\"true\">\r\n\r\n            <auto-complete source=\"loadTags($query)\"></auto-complete>\r\n        </tags-input></div>\r\n    </div>\r\n```\r\n\r\nController:\r\n```\r\n    $http({\r\n        method: 'GET',\r\n        url: 'api/users/for-project/names/software/lecturer',\r\n    }).then(function (result) {\r\n        $scope.lecturers = result.data;\r\n    });\r\n\r\n    $scope.loadTags = function(query) {\r\n        var tags =[\r\n            { \"text\": \"Tag1\" },\r\n            { \"text\": \"Tag2\" },\r\n            { \"text\": \"Tag3\" },\r\n            { \"text\": \"Tag4\" },\r\n            { \"text\": \"Tag5\" },\r\n            { \"text\": \"Tag6\" },\r\n            { \"text\": \"Tag7\" },\r\n            { \"text\": \"Tag8\" },\r\n            { \"text\": \"Tag9\" },\r\n            { \"text\": \"Tag10\" }\r\n            ];\r\n        return tags;\r\n    };\r\n```\r\n\r\nAnd in the page I get: \r\n\r\n>     angular.min.js:107 TypeError: array.some is not a function\r\n>     at Object.self.findInObjectArray (http://localhost:3000/js/ng-tags-input/ng-tags-input.js:1046:15)\r\n>     at TagList.tagIsValid (http://localhost:3000/js/ng-tags-input/ng-tags-input.js:98:28)\r\n>     at Object.TagList.self.add (http://localhost:3000/js/ng-tags-input/ng-tags-input.js:119:17)\r\n>     at Object.TagList.self.addText (http://localhost:3000/js/ng-tags-input/ng-tags-input.js:107:25)\r\n>     at http://localhost:3000/js/ng-tags-input/ng-tags-input.js:407:33\r\n>     at http://localhost:3000/js/ng-tags-input/ng-tags-input.js:1093:29\r\n>     at http://localhost:3000/js/ng-tags-input/ng-tags-input.js:1121:69\r\n>     at Array.every (native)\r\n>     at Object.trigger (http://localhost:3000/js/ng-tags-input/ng-tags-input.js:1120:26)\r\n>     at http://localhost:3000/js/ng-tags-input/ng-tags-input.js:347:40\r\n"},"comment":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/comments/228999376","html_url":"https://github.com/mbenford/ngTagsInput/issues/667#issuecomment-228999376","issue_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/667","id":228999376,"user":{"login":"noherczeg","id":1084847,"avatar_url":"https://avatars.githubusercontent.com/u/1084847?v=3","gravatar_id":"","url":"https://api.github.com/users/noherczeg","html_url":"https://github.com/noherczeg","followers_url":"https://api.github.com/users/noherczeg/followers","following_url":"https://api.github.com/users/noherczeg/following{/other_user}","gists_url":"https://api.github.com/users/noherczeg/gists{/gist_id}","starred_url":"https://api.github.com/users/noherczeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noherczeg/subscriptions","organizations_url":"https://api.github.com/users/noherczeg/orgs","repos_url":"https://api.github.com/users/noherczeg/repos","events_url":"https://api.github.com/users/noherczeg/events{/privacy}","received_events_url":"https://api.github.com/users/noherczeg/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T09:31:03Z","updated_at":"2016-06-28T09:31:03Z","body":"Try `key-property` and/or `display-property`"}}
{"actor":{"display_login":"noherczeg"}}