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:
vsavkin
2015-05-16 15:21:36 -07:00
parent 3a53f67911
commit 7b511462af
17 changed files with 34 additions and 52 deletions
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -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',
+1 -1
View File
@@ -10,7 +10,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
@Component({
selector: 'todo-app',
injectables: [
appInjector: [
Store,
TodoFactory
]