本文整理匯總了TypeScript中ng2-toastr.ToastsManager.setRootViewContainerRef方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript ToastsManager.setRootViewContainerRef方法的具體用法?TypeScript ToastsManager.setRootViewContainerRef怎麽用?TypeScript ToastsManager.setRootViewContainerRef使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ng2-toastr.ToastsManager
的用法示例。
在下文中一共展示了ToastsManager.setRootViewContainerRef方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor(private toastr: ToastsManager, vRef: ViewContainerRef,
public router: Router,
public cognitoLoginService: CognitoLoginService) {
this.toastr.setRootViewContainerRef(vRef);
}
示例2: constructor
constructor(
private fb: FormBuilder,
private _ambulanceService: AmbulanceService,
private _container: ViewContainerRef,
private _toast: ToastsManager
) {
this._toast.setRootViewContainerRef(_container);
}
示例3: constructor
constructor(public router: Router,
public toastr: ToastsManager, vcr: ViewContainerRef,
public awsService: AWSService,
public cognitoService: CognitoService) {
this.toastr.setRootViewContainerRef(vcr);
}
示例4: constructor
constructor(
private fb: FormBuilder,
private _paramedicsService: ParamedicsService,
private _container: ViewContainerRef,
private _toast: ToastsManager
) {
this._toast.setRootViewContainerRef(_container);
}
示例5: constructor
constructor(
private _paramedicsService: ParamedicsService,
private _container: ViewContainerRef,
private _toast: ToastsManager,
private _modalEditParamedicsService: ModalEditParamedicsService
) {
this.paramedics = [];
this.titleModal = '';
this._toast.setRootViewContainerRef(_container);
}
示例6: ngOnInit
ngOnInit(): void {
this.toastr.setRootViewContainerRef(this._vcr);
this.toastr.onClickToast().subscribe( toast => {
this.toastr.dismissToast(toast);
});
this._tokenService.init({
apiPath: 'api',
signInRedirect: 'auth'
});
}
示例7: constructor
constructor(
private _emergencyService: EmergencyService,
private _container: ViewContainerRef,
private _toast: ToastsManager,
private _modalEditEmergenciesService: ModalEditEmergenciesService
) {
this.emergencies = [];
this.titleModal = '';
this._toast.setRootViewContainerRef(_container);
}
示例8: constructor
constructor(
private fb: FormBuilder,
private _emergencyService: EmergencyService,
private _container: ViewContainerRef,
private _toast: ToastsManager
) {
this.ambulances = [];
this.paramedics = [];
this.patients = [];
this.ambulanceSelected = {};
this.driverSelected = {};
this.paramedicsSelected = [];
this.positions = [];
this._toast.setRootViewContainerRef(_container);
}
示例9: constructor
constructor(
private _ambulanceService: AmbulanceService,
private _container: ViewContainerRef,
private _toast: ToastsManager,
private _ModalEditAmbulancesService: ModalEditAmbulancesService) {
this.ambulances = [];
this.search = '';
this.color = '';
this.titleModal = '';
this.totalPages = 0;
this.nextPage = '';
this.previusPage = '';
this.numberRegistre = 0;
this.numberPages = 0;
this._toast.setRootViewContainerRef(_container);
}
示例10: constructor
constructor(toastsManager: ToastsManager, viewContainer: ViewContainerRef) {
toastsManager.setRootViewContainerRef(viewContainer);
}