feat(Directive): convert properties to an array
fixes #2013 BREAKING CHANGE: Before @Directive(properties: { 'sameName': 'sameName', 'directiveProp': 'elProp | pipe' }) After @Directive(properties: [ 'sameName', 'directiveProp: elProp | pipe' ])
This commit is contained in:
@ -13,7 +13,7 @@ void initReflector(reflector) {
|
||||
'parameters': const [],
|
||||
'annotations': const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', properties: const {'text': 'tool-tip'})
|
||||
selector: '[tool-tip]', properties: const ['text: tool-tip'])
|
||||
]
|
||||
});
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ void initReflector(reflector) {
|
||||
'parameters': const [],
|
||||
'annotations': const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', properties: const {'text': 'tool-tip'})
|
||||
selector: '[tool-tip]', properties: const ['text: tool-tip'])
|
||||
]
|
||||
})
|
||||
..registerSetters({'text': (o, v) => o.text = v});
|
||||
|
@ -14,13 +14,13 @@ void initReflector(reflector) {
|
||||
'annotations': const [
|
||||
const Component(
|
||||
componentServices: const [SaladComponent],
|
||||
properties: const {'menu': 'menu'})
|
||||
properties: const ['menu'])
|
||||
]
|
||||
})
|
||||
..registerType(SaladComponent, {
|
||||
'factory': () => new SaladComponent(),
|
||||
'parameters': const [],
|
||||
'annotations': const [const Component(properties: const {'menu': 'menu'})]
|
||||
'annotations': const [const Component(properties: const ['menu'])]
|
||||
})
|
||||
..registerSetters({'menu': (o, v) => o.menu = v});
|
||||
}
|
||||
|
@ -14,12 +14,12 @@ void initReflector(reflector) {
|
||||
'annotations': const [
|
||||
const Component(
|
||||
componentServices: const [SaladComponent],
|
||||
properties: const {'menu': 'menu'})
|
||||
properties: const ['menu'])
|
||||
]
|
||||
})
|
||||
..registerType(SaladComponent, {
|
||||
'factory': () => new SaladComponent(),
|
||||
'parameters': const [],
|
||||
'annotations': const [const Component(properties: const {'menu': 'menu'})]
|
||||
'annotations': const [const Component(properties: const ['menu'])]
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user