bug
ng1 upgraded component works on material dialog
Error: StaticInjectorError(AppModule)[$scope]:
StaticInjectorError(Platform: core)[$scope]:
NullInjectorError: No provider for $scope!
https://stackblitz.com/github/AminRahimi/ngUpgrade
:heart:
This is because you didn't provide a viewContainerRef and therefore an injector that includes the upgraded component isn't being used.
constructor(public dialog: MatDialog, private viewContainerRef: ViewContainerRef) { }
onOpenModalClick() {
....,
viewContainerRef: this.viewContainerRef,
});
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
This is because you didn't provide a
viewContainerRefand therefore an injector that includes the upgraded component isn't being used.