refactor(view): remove hostActions
BREAKING CHANGE Closes #3396 Replacement. Either direct DOM access or Renderer in WebWorkers.
This commit is contained in:
@ -97,11 +97,6 @@ void allTests() {
|
||||
expect(metadata.hostAttributes.length).toBe(1);
|
||||
expect(metadata.hostAttributes).toContain('attName');
|
||||
expect(metadata.hostAttributes['attName']).toEqual('attValue');
|
||||
|
||||
expect(metadata.hostActions).toBeNotNull();
|
||||
expect(metadata.hostActions.length).toBe(1);
|
||||
expect(metadata.hostActions).toContain('actionName');
|
||||
expect(metadata.hostActions['actionName']).toEqual('actionValue');
|
||||
});
|
||||
|
||||
it('should parse lifecycle events.', () async {
|
||||
|
@ -15,7 +15,6 @@ void initReflector(reflector) {
|
||||
const Component(host: const {
|
||||
'(change)': 'onChange(\$event)',
|
||||
'[value]': 'value',
|
||||
'@actionName': 'actionValue',
|
||||
'attName': 'attValue'
|
||||
})
|
||||
], const [
|
||||
|
@ -7,7 +7,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
|
@ -7,7 +7,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": null,
|
||||
"readAttributes": null,
|
||||
@ -31,7 +30,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {"hprop": "hprop"},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": ["prop"],
|
||||
"readAttributes": null,
|
||||
@ -55,7 +53,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {"subevent": "doAThing()"},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": null,
|
||||
@ -79,7 +76,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": ["ngForOf"],
|
||||
"readAttributes": null,
|
||||
@ -95,4 +91,4 @@
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": null,
|
||||
"readAttributes": null,
|
||||
@ -31,7 +30,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -55,7 +53,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -79,7 +76,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -103,7 +99,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -127,7 +122,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -151,7 +145,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -175,7 +168,6 @@
|
||||
"compileChildren": true,
|
||||
"hostProperties": {},
|
||||
"hostListeners": {},
|
||||
"hostActions": {},
|
||||
"hostAttributes": {},
|
||||
"properties": [],
|
||||
"readAttributes": [],
|
||||
@ -191,4 +183,4 @@
|
||||
"version": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user