當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ToastsManager.setRootViewContainerRef方法代碼示例

本文整理匯總了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);

  }
開發者ID:BruceCutler,項目名稱:aws-serverless-workshops,代碼行數:7,代碼來源:login.component.ts

示例2: constructor

 constructor(
   private fb: FormBuilder,
   private _ambulanceService: AmbulanceService,
   private _container: ViewContainerRef,
   private _toast: ToastsManager
 ) {
   this._toast.setRootViewContainerRef(_container);
 }
開發者ID:manuelao-s4ds,項目名稱:Emergencies-ui,代碼行數:8,代碼來源:ambulances.component.ts

示例3: constructor

  constructor(public router: Router,
              public toastr: ToastsManager, vcr: ViewContainerRef,
              public awsService: AWSService,
              public cognitoService: CognitoService) {

    this.toastr.setRootViewContainerRef(vcr);

  }
開發者ID:BruceCutler,項目名稱:aws-serverless-workshops,代碼行數:8,代碼來源:app.component.ts

示例4: constructor

 constructor(
   private fb: FormBuilder,
   private _paramedicsService: ParamedicsService,
   private _container: ViewContainerRef,
   private _toast: ToastsManager
 ) {
   this._toast.setRootViewContainerRef(_container);
 }
開發者ID:manuelao-s4ds,項目名稱:Emergencies-ui,代碼行數:8,代碼來源:paramedics.component.ts

示例5: constructor

 constructor(
   private _paramedicsService: ParamedicsService,
   private _container: ViewContainerRef,
   private _toast: ToastsManager,
   private _modalEditParamedicsService: ModalEditParamedicsService
 ) {
   this.paramedics = [];
   this.titleModal = '';
   this._toast.setRootViewContainerRef(_container);
 }
開發者ID:manuelao-s4ds,項目名稱:Emergencies-ui,代碼行數:10,代碼來源:table-paramedics.component.ts

示例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'
   });
 }
開發者ID:asiman161,項目名稱:easy-tests,代碼行數:10,代碼來源:app.component.ts

示例7: constructor

 constructor(
   private _emergencyService: EmergencyService,
   private _container: ViewContainerRef,
   private _toast: ToastsManager,
   private _modalEditEmergenciesService: ModalEditEmergenciesService
 ) {
   this.emergencies = [];
   this.titleModal = '';
   this._toast.setRootViewContainerRef(_container);
 }
開發者ID:manuelao-s4ds,項目名稱:Emergencies-ui,代碼行數:10,代碼來源:table-emergencies.component.ts

示例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);
 }
開發者ID:manuelao-s4ds,項目名稱:Emergencies-ui,代碼行數:15,代碼來源:emergency.component.ts

示例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);
    }
開發者ID:manuelao-s4ds,項目名稱:Emergencies-ui,代碼行數:16,代碼來源:table-ambulances.component.ts

示例10: constructor

 constructor(toastsManager: ToastsManager, viewContainer: ViewContainerRef) {
     toastsManager.setRootViewContainerRef(viewContainer);
 }
開發者ID:RomanFrom710,項目名稱:lunch-time,代碼行數:3,代碼來源:app.component.ts


注:本文中的ng2-toastr.ToastsManager.setRootViewContainerRef方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。