本文整理汇总了TypeScript中angular2-google-maps/core.provideLazyMapsAPILoaderConfig函数的典型用法代码示例。如果您正苦于以下问题:TypeScript provideLazyMapsAPILoaderConfig函数的具体用法?TypeScript provideLazyMapsAPILoaderConfig怎么用?TypeScript provideLazyMapsAPILoaderConfig使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了provideLazyMapsAPILoaderConfig函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: main
export function main(initialHmrState?: any): Promise<any> {
//noinspection TypeScriptValidateTypes
return bootstrap(AppComponent, [
...PROVIDERS,
...ENV_PROVIDERS,
...DIRECTIVES,
...PIPES,
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS,
...GOOGLE_MAPS_PROVIDERS,
RequestService,
AuthService,
provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyDL7rTTuURd4I5jNb7YPoETRAqH6PZt_00'}),
provide(AuthHttp, {
useFactory: (http) => {
return new AuthHttp(new AuthConfig({
headerPrefix: 'JWT'
}), http);
},
deps: [Http]
}),
provide(Window, {useValue: window})
])
.catch(err => console.error(err));
}
开发者ID:valdemarrolfsen,项目名称:tidbanken,代码行数:27,代码来源:main.ts
示例2: main
document.addEventListener('DOMContentLoaded', function main() {
return bootstrap(App, [
// These are dependencies of our App
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS,
...ENV_PROVIDERS,
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyAB3VwottxsX0DfgWphHisiyI2ZEy0FENU' })
])
.catch(err => console.error(err));
});
开发者ID:dennoa,项目名称:flood-risk-mapper,代码行数:12,代码来源:bootstrap.ts
示例3: bootstrap
.catch(err => console.error(err));
});
/*
* Modified for using hot module reload
*/
// typescript lint error 'Cannot find name "module"' fix
declare let module: any;
// activate hot module reload
if (module.hot) {
// bootstrap must not be called after DOMContentLoaded,
// otherwise it cannot be rerenderd after module replacement
//
// for testing try to comment the bootstrap function,
// open the dev tools and you'll see the reloader is replacing the module but cannot rerender it
bootstrap(App, [
...ENV_PROVIDERS,
...HTTP_PROVIDERS,
...ROUTER_PROVIDERS,
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyAB3VwottxsX0DfgWphHisiyI2ZEy0FENU' })
])
.catch(err => console.error(err));
module.hot.accept();
}
开发者ID:dennoa,项目名称:flood-risk-mapper,代码行数:30,代码来源:bootstrap.ts
示例4: provideLazyMapsAPILoaderConfig
import { FORM_PROVIDERS } from '@angular/common';
import { HTTP_PROVIDERS } from '@angular/http';
import { ApiService } from './shared/services/api.service';
import { AuthService } from './shared/services/auth.service';
import { SearchParamsService } from './shared/services/search-params.service';
import { GlobalEventsService } from './shared/services/global-events.service';
import { BrowserSupportService } from './shared/services/browser-support.service';
import { EasterEggService } from './shared/services/easter-egg.service';
import { provideLazyMapsAPILoaderConfig, GOOGLE_MAPS_PROVIDERS } from 'angular2-google-maps/core';
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
export const APP_PROVIDERS = [
FORM_PROVIDERS,
HTTP_PROVIDERS,
ApiService,
AuthService,
SearchParamsService,
GlobalEventsService,
BrowserSupportService,
EasterEggService,
GOOGLE_MAPS_PROVIDERS,
SlimLoadingBarService,
provideLazyMapsAPILoaderConfig({
apiKey: 'AIzaSyBE1Bb86PEGx-11LahjWCZS2cFOWMpNseI',
libraries: ['places']
})
];
开发者ID:adriancarriger,项目名称:udacity-meetup,代码行数:27,代码来源:app.providers.ts
示例5: bootstrap
import { bootstrap } from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
import {GOOGLE_MAPS_PROVIDERS, provideLazyMapsAPILoaderConfig} from 'angular2-google-maps/core';
import { appRouterProviders } from './app.routes';
bootstrap(AppComponent, [
GOOGLE_MAPS_PROVIDERS, appRouterProviders, provideLazyMapsAPILoaderConfig({
apiKey: 'AIzaSyCL-ew6If2qKce5J11w4mwARJIZH7joxCY'
})
]);
开发者ID:sob95aero,项目名称:first-ng2-app,代码行数:10,代码来源:main.ts
示例6: bootstrap
import { bootstrap } from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component';
import { HTTP_PROVIDERS } from '@angular/http';
import {
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig
} from 'angular2-google-maps/core';
bootstrap(AppComponent, [
HTTP_PROVIDERS,
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyDNw5kxIkzj-FXHh6tXyyfomrHViE2ySC4' })
]);
开发者ID:marciodsousa,项目名称:trashr-web,代码行数:13,代码来源:main.ts
示例7: enableProdMode
import { bootstrap } from '@angular/platform-browser-dynamic'
import { enableProdMode } from '@angular/core'
import { AppComponent, environment } from './app/'
import { appRouterProviders } from './app/app.routes'
import { HTTP_PROVIDERS } from '@angular/http'
import { disableDeprecatedForms, provideForms } from '@angular/forms'
import { LoggedInGuard } from './app/logged-in.guard'
import { UserService } from './app/user.service'
import {GOOGLE_MAPS_PROVIDERS, provideLazyMapsAPILoaderConfig} from 'angular2-google-maps/core'
import { Broadcaster } from './app/broadcaster'
if (environment.production) {
enableProdMode()
}
bootstrap(AppComponent, [
appRouterProviders,
HTTP_PROVIDERS,
disableDeprecatedForms,
provideForms,
UserService,
LoggedInGuard,
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({
apiKey: 'AIzaSyAxocTsOHX8hICM5TMlgFeY0inINATgvg8',
}),
Broadcaster,
])
开发者ID:sk222sw,项目名称:sk222sw.github.io,代码行数:28,代码来源:main.ts
示例8: bootstrap
import {provideRouter} from "@angular/router";
import {GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig} from "angular2-google-maps/core";
import {AppComponent} from "./component";
import {HomeComponent} from "./home/component";
import {InvitationComponent} from "./invitation/component";
import {GalleryComponent} from "./gallery/component";
import {MenuComponent} from "./menu/component";
import {AccessComponent} from "./access/component";
import {ContactComponent} from "./contact/component";
import {LoginComponent} from "./login/component";
import {AuthGuard} from "./utils";
import {mapsAPIKey} from "./constants";
var routes = [
{path: "", component: InvitationComponent, canActivate: [AuthGuard]},
{path: "invitation", component: InvitationComponent, canActivate: [AuthGuard]},
{path: "gallery", component: GalleryComponent, canActivate: [AuthGuard]},
{path: "menu", component: MenuComponent, canActivate: [AuthGuard]},
{path: "access", component: AccessComponent, canActivate: [AuthGuard]},
{path: "contact", component: ContactComponent, canActivate: [AuthGuard]},
{path: "login", component: LoginComponent}
];
bootstrap(AppComponent, [provideRouter(routes), AuthGuard, GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({apiKey: mapsAPIKey})])
.catch(err => console.error(err));
开发者ID:ramnes,项目名称:22octobre,代码行数:30,代码来源:main.ts
示例9: enableProdMode
import { bootstrap } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { AppComponent, environment } from './app/';
import {provideLazyMapsAPILoaderConfig, GOOGLE_MAPS_PROVIDERS} from 'angular2-google-maps/core';
if (environment.production) {
enableProdMode();
}
bootstrap(AppComponent, [
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyB0F3QWXtxJcZhAnZJkt5KTVaIHTmmNGlo'})
]);
开发者ID:jamesgraham10,项目名称:audio-map,代码行数:14,代码来源:main.ts
示例10: enableProdMode
import { HTTP_PROVIDERS } from '@angular/http';
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
import {
provideLazyMapsAPILoaderConfig,
GOOGLE_MAPS_PROVIDERS,
} from 'angular2-google-maps/core';
import {
AppComponent,
NationService,
LocationService,
appRouterProviders,
environment,
googleConfig
} from './app';
if (environment.production) {
enableProdMode();
}
bootstrap(AppComponent, [
NationService,
LocationService,
appRouterProviders,
{ provide: LocationStrategy, useClass: HashLocationStrategy },
HTTP_PROVIDERS,
GOOGLE_MAPS_PROVIDERS,
provideLazyMapsAPILoaderConfig(googleConfig.apiConfig)
]);
开发者ID:godiagonal,项目名称:nations-client,代码行数:30,代码来源:main.ts
注:本文中的angular2-google-maps/core.provideLazyMapsAPILoaderConfig函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论