fix(animations): properly cache renderer and namespace triggers (#14703)
- Don’t use the animation renderer if a component used style encapsulation but no animations. - The `AnimationRenderer` should be cached in the same lifecycle as its delegate. - Trigger names need to be namespaced per component type.
This commit is contained in:
@ -306,6 +306,8 @@ export class ServerRendererFactoryV2 implements RendererFactoryV2 {
|
||||
}
|
||||
|
||||
class DefaultServerRendererV2 implements RendererV2 {
|
||||
data: {[key: string]: any} = Object.create(null);
|
||||
|
||||
constructor(
|
||||
private document: any, private ngZone: NgZone, private schema: DomElementSchemaRegistry) {}
|
||||
|
||||
|
Reference in New Issue
Block a user