Open BickelLukas opened 4 years ago
@BickelLukas The above solution is not working. it is throwing an error as type static boolean is not assignable to read value { static: true }
@anilkumar007 The static
property has been added to ViewChild
in Angular 8. If you have a previous version this fix will not work
I'm using Angular 9 and can't get this fix to work. If I just add the static statement to viewchild it doesn't work; if I extend the class, import from the package and add the static statement it errors about the DomSanitizer constructor. Any more guidance or fixes for the ExpressionChangedAfterItHasBeenCheckedError ?
Using angular 9 I get an
ExpressionChangedAfterItHasBeenCheckedError
.I solved it by overriding the
MatCarouselSlideComponent
and adding{ static: true }
to the templateRef property.This is my component:
It would be nice if this fix gets included in the core library so we dont have to override the component ourselves.