refactor(ivy): handle animation metadata normalization in the compiler (#26481)

PR Close #26481
This commit is contained in:
Matias Niemelä
2018-10-16 11:09:04 -07:00
committed by Miško Hevery
parent e0f9a1b3f3
commit 0ae3518fa9
4 changed files with 18 additions and 18 deletions

View File

@ -245,7 +245,8 @@ export function compileComponentFromMetadata(
// e.g. `animations: [trigger('123', [])]`
if (meta.animations !== null) {
definitionMap.set('animations', meta.animations);
definitionMap.set(
'data', o.literalMap([{key: 'animations', value: meta.animations, quoted: false}]));
}
// On the type side, remove newlines from the selector as it will need to fit into a TypeScript