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


TypeScript overlay-container.createOverlayContainer函數代碼示例

本文整理匯總了TypeScript中@angular2-material/core/overlay/overlay-container.createOverlayContainer函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript createOverlayContainer函數的具體用法?TypeScript createOverlayContainer怎麽用?TypeScript createOverlayContainer使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了createOverlayContainer函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: enableProdMode

import {createOverlayContainer} from '@angular2-material/core/overlay/overlay-container';
import {MdGestureConfig} from '@angular2-material/core/gestures/MdGestureConfig';
import {MdIconRegistry} from '@angular2-material/icon/icon-registry';
import 'rxjs/add/operator/catch';
import 'rxjs/add/observable/throw';
import {RESOURCE_PROVIDERS} from './app/shared/api';
import {DashboardAppComponent, environment} from './app/index';
import {routes} from './app/routes';
import {REDUCERS} from './app/shared/reducers/index';
import {HttpInterceptor} from './app/shared/api/index';

if (environment.production) {
  enableProdMode();
}

bootstrap(DashboardAppComponent, [
  HTTP_PROVIDERS, MdLiveAnnouncer,
  {provide: OVERLAY_CONTAINER_TOKEN, useValue: createOverlayContainer()}, MdIconRegistry, Renderer,
  {provide: HAMMER_GESTURE_CONFIG, useClass: MdGestureConfig},
  {provide: LocationStrategy, useClass: HashLocationStrategy},
  provide(Http, {
    useFactory: (xhrBackend:XHRBackend, requestOptions:RequestOptions, router:Router) =>
      new HttpInterceptor(xhrBackend, requestOptions, router),
    deps: [XHRBackend, RequestOptions, Router]
  }),
  provideStore(REDUCERS),
  RESOURCE_PROVIDERS,
  provideRouter(routes),
  ...ROUTER_DIRECTIVES,
]);
開發者ID:mmrath,項目名稱:base-app-dashboard,代碼行數:30,代碼來源:main.ts

示例2: enableProdMode

import { enableProdMode } from '@angular/core';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {HTTP_PROVIDERS} from '@angular/http';
import {ROUTER_PROVIDERS} from '@angular/router';
import {provide} from '@angular/core';
import {Renderer} from '@angular/core';

import {OVERLAY_CONTAINER_TOKEN} from '@angular2-material/core/overlay/overlay';
import {MdLiveAnnouncer} from "@angular2-material/core/live-announcer/live-announcer";
import {createOverlayContainer} from '@angular2-material/core/overlay/overlay-container';
import {MdGestureConfig} from '@angular2-material/core/gestures/MdGestureConfig';
import {MdIconRegistry} from '@angular2-material/icon/icon-registry';

import { SuperFitnessAppComponent, environment } from './app/';


if (environment.production) {
  enableProdMode();
}

bootstrap(SuperFitnessAppComponent, [
    ROUTER_PROVIDERS,
    MdLiveAnnouncer,
    provide(OVERLAY_CONTAINER_TOKEN, {useValue: createOverlayContainer()}),
    HTTP_PROVIDERS,
    MdIconRegistry,
    Renderer,
    provide(HAMMER_GESTURE_CONFIG, {useClass: MdGestureConfig})
]);

開發者ID:alonp99,項目名稱:super-fitness,代碼行數:29,代碼來源:main.ts

示例3: bootstrap

import {bootstrap} from '@angular/platform-browser-dynamic';
import {HAMMER_GESTURE_CONFIG} from '@angular/platform-browser';
import {HTTP_PROVIDERS} from '@angular/http';
import {Renderer} from '@angular/core';
import {disableDeprecatedForms, provideForms} from '@angular/forms';

import {OVERLAY_CONTAINER_TOKEN} from '@angular2-material/core/overlay/overlay';
import {MdLiveAnnouncer} from '@angular2-material/core/a11y/live-announcer';
import {createOverlayContainer} from '@angular2-material/core/overlay/overlay-container';
import {MdGestureConfig} from '@angular2-material/core/gestures/MdGestureConfig';
import {MdIconRegistry} from '@angular2-material/icon/icon-registry';

import {E2EApp} from './e2e-app/e2e-app';
import {E2E_APP_ROUTE_PROVIDER} from './e2e-app/routes';

bootstrap(E2EApp, [
  E2E_APP_ROUTE_PROVIDER,
  disableDeprecatedForms(),
  provideForms(),
  MdLiveAnnouncer,
  {provide: OVERLAY_CONTAINER_TOKEN, useValue: createOverlayContainer()},
  HTTP_PROVIDERS,
  MdIconRegistry,
  Renderer,
  {provide: HAMMER_GESTURE_CONFIG, useClass: MdGestureConfig},
]);
開發者ID:Kauabunga,項目名稱:material2,代碼行數:26,代碼來源:main.ts


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