{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/4416","labels_url":"https://api.github.com/repos/angular/angular/issues/4416/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/4416/comments","events_url":"https://api.github.com/repos/angular/angular/issues/4416/events","html_url":"https://github.com/angular/angular/issues/4416","id":108958587,"number":4416,"title":"Discussion: Rename DI Bindings into Providers","user":{"login":"vsavkin","id":35996,"avatar_url":"https://avatars.githubusercontent.com/u/35996?v=3","gravatar_id":"","url":"https://api.github.com/users/vsavkin","html_url":"https://github.com/vsavkin","followers_url":"https://api.github.com/users/vsavkin/followers","following_url":"https://api.github.com/users/vsavkin/following{/other_user}","gists_url":"https://api.github.com/users/vsavkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vsavkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsavkin/subscriptions","organizations_url":"https://api.github.com/users/vsavkin/orgs","repos_url":"https://api.github.com/users/vsavkin/repos","events_url":"https://api.github.com/users/vsavkin/events{/privacy}","received_events_url":"https://api.github.com/users/vsavkin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core/di","name":"comp: core/di","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort2:%20medium%20(day)","name":"effort2: medium (day)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/P1:%20urgent","name":"P1: urgent","color":"eb6420"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20chore","name":"type: chore","color":"EEEEEE"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/48","html_url":"https://github.com/angular/angular/milestones/alpha-41","labels_url":"https://api.github.com/repos/angular/angular/milestones/48/labels","id":1338731,"number":48,"title":"alpha-41","description":"Next milestone. All changes complete by October 12. Last release before Angular Connect. Includes di binding -> provider rename.","creator":{"login":"naomiblack","id":2286589,"avatar_url":"https://avatars.githubusercontent.com/u/2286589?v=3","gravatar_id":"","url":"https://api.github.com/users/naomiblack","html_url":"https://github.com/naomiblack","followers_url":"https://api.github.com/users/naomiblack/followers","following_url":"https://api.github.com/users/naomiblack/following{/other_user}","gists_url":"https://api.github.com/users/naomiblack/gists{/gist_id}","starred_url":"https://api.github.com/users/naomiblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naomiblack/subscriptions","organizations_url":"https://api.github.com/users/naomiblack/orgs","repos_url":"https://api.github.com/users/naomiblack/repos","events_url":"https://api.github.com/users/naomiblack/events{/privacy}","received_events_url":"https://api.github.com/users/naomiblack/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":12,"state":"open","created_at":"2015-10-05T17:50:07Z","updated_at":"2015-10-11T17:48:47Z","due_on":"2015-10-12T07:00:00Z","closed_at":null},"comments":36,"created_at":"2015-09-29T20:58:58Z","updated_at":"2015-10-11T18:02:51Z","closed_at":"2015-10-11T05:35:21Z","body":"Using the same word \"binding\" for two core ideas of the framework causes some confusion. \r\n\r\nProposal: Rename Binding into Provider, and bindings into providers.\r\n\r\n```\r\n@Component({\r\n  providers: [\r\n    // the constructor version  \r\n    new Provider(Http, {toClass: CustomHttp}),\r\n\r\n    // using builder\r\n    provide(Http).viaFactory(customFactory),\r\n\r\n    // using a different type of builder\r\n    provide(Http, {value: customFactory})\r\n  ]\r\n})\r\n```\r\n\r\nPros:\r\n* Similar to Angular 1\r\n* Binding means only data-bindings\r\n\r\nCons:\r\n* Different from other DI systems, which mostly use the word binding\r\n\r\n@IgorMinar @mhevery"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/147230787","html_url":"https://github.com/angular/angular/issues/4416#issuecomment-147230787","issue_url":"https://api.github.com/repos/angular/angular/issues/4416","id":147230787,"user":{"login":"PascalPrecht","id":445106,"avatar_url":"https://avatars.githubusercontent.com/u/445106?v=3","gravatar_id":"","url":"https://api.github.com/users/PascalPrecht","html_url":"https://github.com/PascalPrecht","followers_url":"https://api.github.com/users/PascalPrecht/followers","following_url":"https://api.github.com/users/PascalPrecht/following{/other_user}","gists_url":"https://api.github.com/users/PascalPrecht/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalPrecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalPrecht/subscriptions","organizations_url":"https://api.github.com/users/PascalPrecht/orgs","repos_url":"https://api.github.com/users/PascalPrecht/repos","events_url":"https://api.github.com/users/PascalPrecht/events{/privacy}","received_events_url":"https://api.github.com/users/PascalPrecht/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T18:02:51Z","updated_at":"2015-10-11T18:02:51Z","body":"I'm not an english native, so for me it's prolly less of a problem than for others. But seeing your code sample @endash I see the problem that the actual token is always at the end of the line, which makes it hard to read, if you really just want to find out what you get for a certain token. I think that having the tokens at the beginning is the better way to go here."}}