@@ -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