refactor(core): renamed injectables into appInjector
BREAKING CHANGES
Before:
@Component({injectables: [Type]} class MyCmp{}
After:
@Component({appInjector: [Type]} class MyCmp{}
This commit is contained in:
@@ -124,7 +124,7 @@ class SurveyQuestion {
|
||||
// SurveyBuilder is a form that allows you to create a survey.
|
||||
@Component({
|
||||
selector: 'survey-builder-app',
|
||||
injectables: [FormBuilder]
|
||||
appInjector: [FormBuilder]
|
||||
})
|
||||
@View({
|
||||
template: `
|
||||
|
||||
@@ -21,7 +21,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
selector: 'hello-app',
|
||||
// These are services that would be created if a class in the component's
|
||||
// template tries to inject them.
|
||||
injectables: [GreetingService]
|
||||
appInjector: [GreetingService]
|
||||
})
|
||||
// The template for the component.
|
||||
@View({
|
||||
|
||||
@@ -13,7 +13,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
@Component({
|
||||
selector: 'demo-app',
|
||||
injectables: [MdDialog]
|
||||
appInjector: [MdDialog]
|
||||
})
|
||||
@View({
|
||||
templateUrl: './demo_app.html',
|
||||
|
||||
@@ -12,7 +12,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
@Component({
|
||||
selector: 'demo-app',
|
||||
injectables: [MdRadioDispatcher]
|
||||
appInjector: [MdRadioDispatcher]
|
||||
})
|
||||
@View({
|
||||
templateUrl: './demo_app.html',
|
||||
|
||||
@@ -10,7 +10,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
@Component({
|
||||
selector: 'todo-app',
|
||||
injectables: [
|
||||
appInjector: [
|
||||
Store,
|
||||
TodoFactory
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user