{"action":"closed","issue":{"url":"https://api.github.com/repos/auth0/angular2-authentication-sample/issues/9","labels_url":"https://api.github.com/repos/auth0/angular2-authentication-sample/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/auth0/angular2-authentication-sample/issues/9/comments","events_url":"https://api.github.com/repos/auth0/angular2-authentication-sample/issues/9/events","html_url":"https://github.com/auth0/angular2-authentication-sample/issues/9","id":72877706,"number":9,"title":"Bootstrapping app","user":{"login":"Foxandxss","id":1087957,"avatar_url":"https://avatars.githubusercontent.com/u/1087957?v=3","gravatar_id":"","url":"https://api.github.com/users/Foxandxss","html_url":"https://github.com/Foxandxss","followers_url":"https://api.github.com/users/Foxandxss/followers","following_url":"https://api.github.com/users/Foxandxss/following{/other_user}","gists_url":"https://api.github.com/users/Foxandxss/gists{/gist_id}","starred_url":"https://api.github.com/users/Foxandxss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Foxandxss/subscriptions","organizations_url":"https://api.github.com/users/Foxandxss/orgs","repos_url":"https://api.github.com/users/Foxandxss/repos","events_url":"https://api.github.com/users/Foxandxss/events{/privacy}","received_events_url":"https://api.github.com/users/Foxandxss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-03T22:43:15Z","updated_at":"2015-05-04T15:05:46Z","closed_at":"2015-05-04T15:05:46Z","body":"Last issue, I promise :P\r\n\r\nI am trying to understand the last piece of this puzzle so here I go:\r\n\r\n```javascript\r\nbootstrap(App, [\r\n  bind(Router).toValue(new RootRouter(new Pipeline())),\r\n  bind(PipeRegistry).toValue(new PipeRegistry(pipes))\r\n]);\r\n```\r\n\r\nI think that I understand the second parameter as new injections, but seems to be like new injections for the `App` component itself. How does this work? Does angular (as today) need the router to be injected in that way? And what about the Pipe stuff? I know it is to add a new \"filter\", but why do we need to add it in the bootstrap?"}}