feat(di): removed app injector
BREAKING CHANGE: THe appInjector property has been removed. Instead use viewInjector or hostInjector.
This commit is contained in:
@ -48,7 +48,7 @@ export {URLSearchParams} from 'angular2/src/http/url_search_params';
|
||||
*
|
||||
* ```
|
||||
* import {httpInjectables, Http} from 'angular2/http';
|
||||
* @Component({selector: 'http-app', appInjector: [httpInjectables]})
|
||||
* @Component({selector: 'http-app', viewInjector: [httpInjectables]})
|
||||
* @View({template: '{{data}}'})
|
||||
* class MyApp {
|
||||
* constructor(http:Http) {
|
||||
|
Reference in New Issue
Block a user