当前位置: 首页>>代码示例>>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;未经允许,请勿转载。