fix(ivy): add missing @nocollapse annotation to __NG_ELEMENT_ID__ fields (#28050)

__NG_ELEMENT_ID__ static fields are a part of how the Ivy node injector
works. In order to survive closure minification correctly, they need to
be annotated with @nocollapse.

PR Close #28050
This commit is contained in:
Alex Rickabaugh
2019-01-10 15:20:51 -08:00
committed by Andrew Kushnir
parent 61bc61fc59
commit 091a8a6fd5
6 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export abstract class TemplateRef<C> {
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;
/** @internal */
/** @nocollapse */
static __NG_ELEMENT_ID__:
() => TemplateRef<any>| null = () => SWITCH_TEMPLATE_REF_FACTORY(TemplateRef, ElementRef)
}