refactor(upgrade): compile upgrade cleanly with TypeScript 2.4 (#18461)

This commit is contained in:
Chuck Jazdzewski 2017-08-02 16:28:04 -07:00 committed by Victor Berchet
parent 7c47b62a96
commit ea07856cc5
1 changed files with 4 additions and 1 deletions

View File

@ -1028,7 +1028,10 @@ export function main() {
// Define `ng1Component`
const ng1ComponentA: angular.IComponent = {template: 'ng1A(<ng1-b></ng1-b>)'};
const ng1DirectiveB: angular.IDirective = {
compile: tElem => grandParentNodeName = tElem.parent !().parent !()[0].nodeName
compile: tElem => {
grandParentNodeName = tElem.parent !().parent !()[0].nodeName;
return {};
}
};
// Define `Ng1ComponentAFacade`