Angular 2 : Loading nested Component is destroying the existing scope of ng2-toastr
问题 I'm using a ng2-toastr in my page and working fine, but when I have a nested component in the page the existing ng2-toastr(ToastManager) scope is destroyed and toastr is not working. constructor(public toastr: ToastsManager,public vcr: ViewContainerRef) { this.toastr.setRootViewContainerRef(vcr); } In My method when I call this.toastr.warning('Its Warning','Alert'); Its Working fine, but in my html when I'm loading other component i.e <es-app></es-app> the toastr in my page is not working (No