{"action":"closed","issue":{"url":"https://api.github.com/repos/ngParty/ng-metadata/issues/47","repository_url":"https://api.github.com/repos/ngParty/ng-metadata","labels_url":"https://api.github.com/repos/ngParty/ng-metadata/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/ngParty/ng-metadata/issues/47/comments","events_url":"https://api.github.com/repos/ngParty/ng-metadata/issues/47/events","html_url":"https://github.com/ngParty/ng-metadata/issues/47","id":134081160,"number":47,"title":"one way data binding by default","user":{"login":"Hotell","id":1223799,"avatar_url":"https://avatars.githubusercontent.com/u/1223799?v=3","gravatar_id":"","url":"https://api.github.com/users/Hotell","html_url":"https://github.com/Hotell","followers_url":"https://api.github.com/users/Hotell/followers","following_url":"https://api.github.com/users/Hotell/following{/other_user}","gists_url":"https://api.github.com/users/Hotell/gists{/gist_id}","starred_url":"https://api.github.com/users/Hotell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hotell/subscriptions","organizations_url":"https://api.github.com/users/Hotell/orgs","repos_url":"https://api.github.com/users/Hotell/repos","events_url":"https://api.github.com/users/Hotell/events{/privacy}","received_events_url":"https://api.github.com/users/Hotell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ngParty/ng-metadata/labels/feature","name":"feature","color":"009800"},{"url":"https://api.github.com/repos/ngParty/ng-metadata/labels/module:core","name":"module:core","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ngParty/ng-metadata/milestones/6","html_url":"https://github.com/ngParty/ng-metadata/milestones/2.0","labels_url":"https://api.github.com/repos/ngParty/ng-metadata/milestones/6/labels","id":1611728,"number":6,"title":"2.0","description":"- support angular >=1.5","creator":{"login":"Hotell","id":1223799,"avatar_url":"https://avatars.githubusercontent.com/u/1223799?v=3","gravatar_id":"","url":"https://api.github.com/users/Hotell","html_url":"https://github.com/Hotell","followers_url":"https://api.github.com/users/Hotell/followers","following_url":"https://api.github.com/users/Hotell/following{/other_user}","gists_url":"https://api.github.com/users/Hotell/gists{/gist_id}","starred_url":"https://api.github.com/users/Hotell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hotell/subscriptions","organizations_url":"https://api.github.com/users/Hotell/orgs","repos_url":"https://api.github.com/users/Hotell/repos","events_url":"https://api.github.com/users/Hotell/events{/privacy}","received_events_url":"https://api.github.com/users/Hotell/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":4,"state":"open","created_at":"2016-02-29T13:13:52Z","updated_at":"2016-06-26T20:50:30Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-02-16T19:54:03Z","updated_at":"2016-06-26T20:50:30Z","closed_at":"2016-06-26T20:50:30Z","body":"Use one way data binding only and by default as angular 1.5 uses\r\n\r\nhttps://github.com/angular/angular.js/commit/4ac23c0ac59c269d65b7f78efec75d060121bd18#diff-a732922b631efed1b9f33a24082ae0dbL3037\r\n\r\nangular doesn't copies those parent values, so if we have object and modify a property it will be mutated on parent, which is not very convenient. We wanna push best practices and stay immutable, so we will copy `@Input` props via `angular.copy`.\r\n\r\nAlthough we should keep fallback for people which really need 2 way binding:\r\n\r\n```typescript\r\n// one way only\r\n@Component({ \r\n  selector: 'hero', \r\n  template:`hello`\r\n})\r\nclass HeroComponent{\r\n  @Input() name: string;\r\n  @Input() skills: string[];\r\n}\r\n```\r\n\r\n```typescript\r\n// two-way fallback via alias only\r\n@Component({ \r\n  selector: 'hero', \r\n  template:`hello`\r\n})\r\nclass HeroComponent{\r\n  @Input('=') name: string;\r\n  @Input('=') skills: string[];\r\n}\r\n```"}}
{"actor":{"display_login":"Hotell"}}