本文整理汇总了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);
}