{"action":"created","issue":{"url":"https://api.github.com/repos/ngUpgraders/ng-forward/issues/132","labels_url":"https://api.github.com/repos/ngUpgraders/ng-forward/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/ngUpgraders/ng-forward/issues/132/comments","events_url":"https://api.github.com/repos/ngUpgraders/ng-forward/issues/132/events","html_url":"https://github.com/ngUpgraders/ng-forward/issues/132","id":124936036,"number":132,"title":"TypeError is emitted when no default value is set on @Input properties","user":{"login":"mlegenhausen","id":424493,"avatar_url":"https://avatars.githubusercontent.com/u/424493?v=3","gravatar_id":"","url":"https://api.github.com/users/mlegenhausen","html_url":"https://github.com/mlegenhausen","followers_url":"https://api.github.com/users/mlegenhausen/followers","following_url":"https://api.github.com/users/mlegenhausen/following{/other_user}","gists_url":"https://api.github.com/users/mlegenhausen/gists{/gist_id}","starred_url":"https://api.github.com/users/mlegenhausen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlegenhausen/subscriptions","organizations_url":"https://api.github.com/users/mlegenhausen/orgs","repos_url":"https://api.github.com/users/mlegenhausen/repos","events_url":"https://api.github.com/users/mlegenhausen/events{/privacy}","received_events_url":"https://api.github.com/users/mlegenhausen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-05T10:14:47Z","updated_at":"2016-01-05T19:46:52Z","closed_at":null,"body":"Using\r\n* babel@6.3.26\r\n* babel-plugin-transform-decorators-legacy@1.3.4\r\n\r\nIt should be document that you get an error if you try to assign to an input property without an default value:\r\n\r\n```js\r\n@Component({\r\n  selector: 'app',\r\n  template: 'Hello {{ ctrl.value }}'\r\n})\r\nclass App {\r\n  // @Input() value; does not work cause the decorators transform will mark the property as not writeable if no initializer is given.\r\n  @Input() value = null; // This works \r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ngUpgraders/ng-forward/issues/comments/169109184","html_url":"https://github.com/ngUpgraders/ng-forward/issues/132#issuecomment-169109184","issue_url":"https://api.github.com/repos/ngUpgraders/ng-forward/issues/132","id":169109184,"user":{"login":"mlegenhausen","id":424493,"avatar_url":"https://avatars.githubusercontent.com/u/424493?v=3","gravatar_id":"","url":"https://api.github.com/users/mlegenhausen","html_url":"https://github.com/mlegenhausen","followers_url":"https://api.github.com/users/mlegenhausen/followers","following_url":"https://api.github.com/users/mlegenhausen/following{/other_user}","gists_url":"https://api.github.com/users/mlegenhausen/gists{/gist_id}","starred_url":"https://api.github.com/users/mlegenhausen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlegenhausen/subscriptions","organizations_url":"https://api.github.com/users/mlegenhausen/orgs","repos_url":"https://api.github.com/users/mlegenhausen/repos","events_url":"https://api.github.com/users/mlegenhausen/events{/privacy}","received_events_url":"https://api.github.com/users/mlegenhausen/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T19:46:52Z","updated_at":"2016-01-05T19:46:52Z","body":"The change was introduced to babel-transform-decorators-lagacy here: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy/commit/9eefc328e3044e8a1bca0e829b8b18d1b90280e2\r\n\r\nI don't think it is a bug it seems to a feature, but when following the documentation of ng-forward you get an error. I will open an issue at babel-transform-decorators-lagacy."}}