You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just updated to the latest version, which includes all the rc5 NgModule changes (thanks for this).
My code loads fine, so i believe i am including the ModalModule in the correct places, but when i try to open one, i get this exception
EXCEPTION: No provider for AppComponent!
I have included the following code in my AppComponent.ts file as stated by the docs
import {Component, ViewContainerRef} from '@angular/core';
@component({selector:'app-root'})
class AppRoot {
public constructor(viewContainerRef:ViewContainerRef) {
// You need this small hack in order to catch application root view container ref
this.viewContainerRef = viewContainerRef;
}
}
Am i missing something?
The text was updated successfully, but these errors were encountered:
Gillardo
changed the title
Modal returning error in rc5....
Modal exception in rc5 - No provider for AppComponent
Sep 1, 2016
I have just updated to the latest version, which includes all the rc5 NgModule changes (thanks for this).
My code loads fine, so i believe i am including the
ModalModule
in the correct places, but when i try to open one, i get this exceptionI have included the following code in my AppComponent.ts file as stated by the docs
Am i missing something?
The text was updated successfully, but these errors were encountered: