{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/webpack-bin/issues/103","repository_url":"https://api.github.com/repos/christianalfoni/webpack-bin","labels_url":"https://api.github.com/repos/christianalfoni/webpack-bin/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/webpack-bin/issues/103/comments","events_url":"https://api.github.com/repos/christianalfoni/webpack-bin/issues/103/events","html_url":"https://github.com/christianalfoni/webpack-bin/issues/103","id":144251927,"number":103,"title":"angular2 ngModel error","user":{"login":"rascada","id":10521222,"avatar_url":"https://avatars.githubusercontent.com/u/10521222?v=3","gravatar_id":"","url":"https://api.github.com/users/rascada","html_url":"https://github.com/rascada","followers_url":"https://api.github.com/users/rascada/followers","following_url":"https://api.github.com/users/rascada/following{/other_user}","gists_url":"https://api.github.com/users/rascada/gists{/gist_id}","starred_url":"https://api.github.com/users/rascada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rascada/subscriptions","organizations_url":"https://api.github.com/users/rascada/orgs","repos_url":"https://api.github.com/users/rascada/repos","events_url":"https://api.github.com/users/rascada/events{/privacy}","received_events_url":"https://api.github.com/users/rascada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-29T12:35:12Z","updated_at":"2016-03-29T17:40:04Z","closed_at":null,"body":"angular2 don't work correctly\r\n\r\n[demo](http://www.webpackbin.com/N1hlEDm0l)\r\n```ts\r\nimport {Component} from 'angular2/core';\r\n\r\n@Component({\r\n    selector: '#app',\r\n    template: `\r\n      <h1> {{ model }} </h1> \r\n      <input [(ngModel)]=\"model\" placeholder=\"model\" />`\r\n})\r\nexport class AppComponent {\r\n  model: string = 'test';\r\n}\r\n```\r\n\r\n```\r\nUncaught EXCEPTION: Error during evaluation of \"input\" ORIGINAL EXCEPTION: TypeError: this.directive_0_1.onChange is not a function ORIGINAL STACKTRACE: TypeError: this.directive_0_1.onChange is not a function at t.ChangeDetector_AppComponent_0.handleEventInternal (viewFactory_AppComponent:261:36) at t.handleEvent (http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:6:14620) at t.triggerEventHandlers (http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:8:25083) at eval (viewFactory_AppComponent:330:110) at http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:12:27411 at http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:12:20197 at t.run (http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:8:9270) at HTMLInputElement.i (http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:12:20175) at t.invokeTask (http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:1:7615) at t.runTask (http://sandbox.webpackbin.com/api/sandbox/vendors/2246156992/bundle.js:1:4967) ERROR CONTEXT: [object Object]\r\n```"},"comment":{"url":"https://api.github.com/repos/christianalfoni/webpack-bin/issues/comments/203020372","html_url":"https://github.com/christianalfoni/webpack-bin/issues/103#issuecomment-203020372","issue_url":"https://api.github.com/repos/christianalfoni/webpack-bin/issues/103","id":203020372,"user":{"login":"christianalfoni","id":3956929,"avatar_url":"https://avatars.githubusercontent.com/u/3956929?v=3","gravatar_id":"","url":"https://api.github.com/users/christianalfoni","html_url":"https://github.com/christianalfoni","followers_url":"https://api.github.com/users/christianalfoni/followers","following_url":"https://api.github.com/users/christianalfoni/following{/other_user}","gists_url":"https://api.github.com/users/christianalfoni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianalfoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianalfoni/subscriptions","organizations_url":"https://api.github.com/users/christianalfoni/orgs","repos_url":"https://api.github.com/users/christianalfoni/repos","events_url":"https://api.github.com/users/christianalfoni/events{/privacy}","received_events_url":"https://api.github.com/users/christianalfoni/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T17:40:04Z","updated_at":"2016-03-29T17:40:04Z","body":"Thanks for building the BIN btw :)"}}