{"action":"created","issue":{"url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/94","labels_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/94/comments","events_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/94/events","html_url":"https://github.com/valor-software/ng2-bootstrap/issues/94","id":128403044,"number":94,"title":"Selecting typeahead option throws error","user":{"login":"MarkoSulamagi","id":4674408,"avatar_url":"https://avatars.githubusercontent.com/u/4674408?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkoSulamagi","html_url":"https://github.com/MarkoSulamagi","followers_url":"https://api.github.com/users/MarkoSulamagi/followers","following_url":"https://api.github.com/users/MarkoSulamagi/following{/other_user}","gists_url":"https://api.github.com/users/MarkoSulamagi/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkoSulamagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkoSulamagi/subscriptions","organizations_url":"https://api.github.com/users/MarkoSulamagi/orgs","repos_url":"https://api.github.com/users/MarkoSulamagi/repos","events_url":"https://api.github.com/users/MarkoSulamagi/events{/privacy}","received_events_url":"https://api.github.com/users/MarkoSulamagi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T15:07:13Z","updated_at":"2016-01-24T19:29:44Z","closed_at":"2016-01-24T19:29:44Z","body":"I have the latest ng2-bootstrap and I'm getting errors implementing typeahead. When I select option from typeahead autocomplete, I get following error:\r\nORIGINAL EXCEPTION: TypeError: Cannot read property 'boundElements' of undefined\r\n\r\nI managed to track error to typeahead.directive.ts, line 11:\r\nrenderer.setElementProperty(elementRef.nativeElement, propName, propValue);\r\n\r\nProblem was that setElementProperty is expecting elementRef, not elementRef.nativeElement. If I changed it, then I'm not getting following error anymore. The option is selected, dropdown is closed, but my (typeahead-on-select) event is not called. \r\n\r\nI'm using static autocomplete (tried with complex and not complex solutions). \r\n\r\n    <input class=\"form-control\" placeholder=\"placeholder\"\r\n       [(ngModel)]=\"itemType\"\r\n       [typeahead]=\"itemTypesCache\"\r\n       [typeaheadOptionField]=\"'name'\"\r\n       [typeaheadOptionsLimit]=\"7\"\r\n       (typeahead-on-select)=\"onItemTypeSelect($event)\">\r\n\r\n------\r\n\r\n    public onItemTypeSelect(e: any) {\r\n        console.log(\"Selected\"); // <-- This line is not called\r\n    }"},"comment":{"url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/comments/174333104","html_url":"https://github.com/valor-software/ng2-bootstrap/issues/94#issuecomment-174333104","issue_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/94","id":174333104,"user":{"login":"valorkin","id":1107171,"avatar_url":"https://avatars.githubusercontent.com/u/1107171?v=3","gravatar_id":"","url":"https://api.github.com/users/valorkin","html_url":"https://github.com/valorkin","followers_url":"https://api.github.com/users/valorkin/followers","following_url":"https://api.github.com/users/valorkin/following{/other_user}","gists_url":"https://api.github.com/users/valorkin/gists{/gist_id}","starred_url":"https://api.github.com/users/valorkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valorkin/subscriptions","organizations_url":"https://api.github.com/users/valorkin/orgs","repos_url":"https://api.github.com/users/valorkin/repos","events_url":"https://api.github.com/users/valorkin/events{/privacy}","received_events_url":"https://api.github.com/users/valorkin/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T19:29:44Z","updated_at":"2016-01-24T19:29:44Z","body":"hey, I closed PR for now, it seems you are using angular2 beta0 with ng2-bootstrap beta.1\r\nplease check and reopen if necessary\r\n"}}