{"action":"opened","issue":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/464","labels_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/464/comments","events_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/464/events","html_url":"https://github.com/mbenford/ngTagsInput/issues/464","id":79602148,"number":464,"title":"Observing min-tags causes \"TypeError: Cannot read property 'length' of undefined\"","user":{"login":"dloehr","id":696145,"avatar_url":"https://avatars.githubusercontent.com/u/696145?v=3","gravatar_id":"","url":"https://api.github.com/users/dloehr","html_url":"https://github.com/dloehr","followers_url":"https://api.github.com/users/dloehr/followers","following_url":"https://api.github.com/users/dloehr/following{/other_user}","gists_url":"https://api.github.com/users/dloehr/gists{/gist_id}","starred_url":"https://api.github.com/users/dloehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dloehr/subscriptions","organizations_url":"https://api.github.com/users/dloehr/orgs","repos_url":"https://api.github.com/users/dloehr/repos","events_url":"https://api.github.com/users/dloehr/events{/privacy}","received_events_url":"https://api.github.com/users/dloehr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T20:43:37Z","updated_at":"2015-05-22T20:43:37Z","closed_at":null,"body":"When I turn on active interpolation for the ```min-tags``` attribute, ng-tags-input throws ```TypeError: Cannot read property 'length' of undefined```.\r\n\r\nIt looks like it's assuming that the ngModel value is an array and trying to validate it before a value has been set.\r\n\r\nSee this plunker: http://plnkr.co/edit/2jbiOqIhVnnU8QrxV9o9?p=preview\r\n\r\n```\r\nTypeError: Cannot read property 'length' of undefined\r\n    at d.directive.link.j (http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js:1:3249)\r\n    at http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js:1:4691\r\n    at d.factory.b.handleUndefinedResult (http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js:1:12956)\r\n    at http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js:1:13333\r\n    at Array.every (native)\r\n    at Object.d.factory.b.simplePubSub.trigger (http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js:1:13279)\r\n    at http://mbenford.github.io/ngTagsInput/js/ng-tags-input.min.js:1:11731\r\n    at https://code.angularjs.org/1.2.28/angular.js:5981:13\r\n    at Scope.$get.Scope.$eval (https://code.angularjs.org/1.2.28/angular.js:12811:28)\r\n    at Scope.$get.Scope.$digest (https://code.angularjs.org/1.2.28/angular.js:12623:31)\r\n```\r\n\r\nPossibly related to #408 \r\n\r\n"}}