{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2818","repository_url":"https://api.github.com/repos/angular-ui/ui-router","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2818/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2818/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2818/events","html_url":"https://github.com/angular-ui/ui-router/issues/2818","id":161019581,"number":2818,"title":"Error: DI can't find injectable: 'a' (ui-router 1.0-alpha.5 using Angular2)","user":{"login":"wawyed","id":4390806,"avatar_url":"https://avatars.githubusercontent.com/u/4390806?v=3","gravatar_id":"","url":"https://api.github.com/users/wawyed","html_url":"https://github.com/wawyed","followers_url":"https://api.github.com/users/wawyed/followers","following_url":"https://api.github.com/users/wawyed/following{/other_user}","gists_url":"https://api.github.com/users/wawyed/gists{/gist_id}","starred_url":"https://api.github.com/users/wawyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wawyed/subscriptions","organizations_url":"https://api.github.com/users/wawyed/orgs","repos_url":"https://api.github.com/users/wawyed/repos","events_url":"https://api.github.com/users/wawyed/events{/privacy}","received_events_url":"https://api.github.com/users/wawyed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-18T11:21:26Z","updated_at":"2016-06-18T15:34:04Z","closed_at":null,"body":"If I tried to load the app with the source minified I get this error. So I used strict DI annotation from angular1 (`['depName', (depName) => {}]`) in the resolve, which made the app load and the state got resolved. But unfortunately when I try to navigate to a new state I get the error again. I've double checked and all resolve blocks have the notation.\r\n\r\nIs there something am I missing?"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/226948598","html_url":"https://github.com/angular-ui/ui-router/issues/2818#issuecomment-226948598","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2818","id":226948598,"user":{"login":"christopherthielen","id":2053478,"avatar_url":"https://avatars.githubusercontent.com/u/2053478?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherthielen","html_url":"https://github.com/christopherthielen","followers_url":"https://api.github.com/users/christopherthielen/followers","following_url":"https://api.github.com/users/christopherthielen/following{/other_user}","gists_url":"https://api.github.com/users/christopherthielen/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherthielen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherthielen/subscriptions","organizations_url":"https://api.github.com/users/christopherthielen/orgs","repos_url":"https://api.github.com/users/christopherthielen/repos","events_url":"https://api.github.com/users/christopherthielen/events{/privacy}","received_events_url":"https://api.github.com/users/christopherthielen/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T15:34:04Z","updated_at":"2016-06-18T15:34:04Z","body":"Definitely a minification/annotation problem.  It's hard to tell the source of your minification problem without seeing the project.\r\n\r\nHowever (BC Break warning)... resolves and transition hooks in ng2 are going to be changing pretty dramatically in the next release.\r\n\r\nWe'll be switching to ng2 \"provider array\" style for resolves:\r\n\r\n```js\r\nresolve: [\r\n  { provide: 'myResolve', useFactory: (depName) => {}, deps: [DependencyClass] }\r\n]\r\n```\r\n\r\nand are no longer injecting transition hooks, but rather supplying two parameters: `(trans; Transition, injector: Injector)`"}}
{"actor":{"display_login":"christopherthielen"}}