+2
-2
@@ -585,7 +585,7 @@ class ComponentWithPipes {
|
||||
|
||||
@Component({
|
||||
selector: 'child-cmp',
|
||||
componentServices: [MyService]
|
||||
services: [MyService]
|
||||
})
|
||||
@Template({
|
||||
directives: [MyDir],
|
||||
@@ -635,7 +635,7 @@ class CompWithAncestor {
|
||||
|
||||
@Component({
|
||||
selector: '[child-cmp2]',
|
||||
componentServices: [MyService]
|
||||
services: [MyService]
|
||||
})
|
||||
class ChildComp2 {
|
||||
ctxProp:string;
|
||||
|
||||
+1
-1
@@ -209,7 +209,7 @@ class SomeComponentService {}
|
||||
class SomeViewportDirective {}
|
||||
|
||||
@Component({
|
||||
componentServices: [SomeComponentService]
|
||||
services: [SomeComponentService]
|
||||
})
|
||||
class SomeComponentDirective {}
|
||||
|
||||
|
||||
+1
-1
@@ -676,7 +676,7 @@ class DirectiveImplementingOnChange {
|
||||
|
||||
class SomeService {}
|
||||
|
||||
@Component({componentServices: [SomeService]})
|
||||
@Component({services: [SomeService]})
|
||||
class SomeComponent {
|
||||
service: SomeService;
|
||||
constructor(service: SomeService) {
|
||||
|
||||
@@ -2,7 +2,7 @@ library bar;
|
||||
|
||||
import 'package:angular2/src/core/annotations/annotations.dart';
|
||||
|
||||
@Component(selector: 'soup', componentServices: const [ToolTip])
|
||||
@Component(selector: 'soup', services: const [ToolTip])
|
||||
class MyComponent {}
|
||||
|
||||
@Decorator(selector: '[tool-tip]', bind: const {'text': 'tool-tip'})
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ void setupReflection(reflector) {
|
||||
"factory": () => new MyComponent(),
|
||||
"parameters": const [],
|
||||
"annotations": const [
|
||||
const Component(selector: 'soup', componentServices: const [ToolTip])
|
||||
const Component(selector: 'soup', services: const [ToolTip])
|
||||
]
|
||||
})
|
||||
..registerType(ToolTip, {
|
||||
|
||||
@@ -4,7 +4,7 @@ import 'package:angular2/src/core/annotations/annotations.dart';
|
||||
import 'foo.dart' as dep;
|
||||
|
||||
@Component(
|
||||
selector: '[soup]', componentServices: const [dep.DependencyComponent])
|
||||
selector: '[soup]', services: const [dep.DependencyComponent])
|
||||
class MyComponent {
|
||||
MyComponent();
|
||||
}
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ void setupReflection(reflector) {
|
||||
"annotations": const [
|
||||
const Component(
|
||||
selector: '[soup]',
|
||||
componentServices: const [dep.DependencyComponent])
|
||||
services: const [dep.DependencyComponent])
|
||||
]
|
||||
});
|
||||
i0.setupReflection(reflector);
|
||||
|
||||
@@ -3,7 +3,7 @@ library bar;
|
||||
import 'package:angular2/src/core/annotations/annotations.dart';
|
||||
import 'foo.dart';
|
||||
|
||||
@Component(componentServices: const [MyContext])
|
||||
@Component(services: const [MyContext])
|
||||
class MyComponent {
|
||||
final MyContext c;
|
||||
MyComponent(this.c);
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ void setupReflection(reflector) {
|
||||
"factory": (MyContext c) => new MyComponent(c),
|
||||
"parameters": const [const [MyContext]],
|
||||
"annotations": const [
|
||||
const Component(componentServices: const [MyContext])
|
||||
const Component(services: const [MyContext])
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user