refactor(upgrade): compile upgrade cleanly with TypeScript 2.4 (#18461)
This commit is contained in:
parent
7c47b62a96
commit
ea07856cc5
@ -1028,7 +1028,10 @@ export function main() {
|
|||||||
// Define `ng1Component`
|
// Define `ng1Component`
|
||||||
const ng1ComponentA: angular.IComponent = {template: 'ng1A(<ng1-b></ng1-b>)'};
|
const ng1ComponentA: angular.IComponent = {template: 'ng1A(<ng1-b></ng1-b>)'};
|
||||||
const ng1DirectiveB: angular.IDirective = {
|
const ng1DirectiveB: angular.IDirective = {
|
||||||
compile: tElem => grandParentNodeName = tElem.parent !().parent !()[0].nodeName
|
compile: tElem => {
|
||||||
|
grandParentNodeName = tElem.parent !().parent !()[0].nodeName;
|
||||||
|
return {};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Define `Ng1ComponentAFacade`
|
// Define `Ng1ComponentAFacade`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user