【发布时间】:2017-12-18 07:08:19
【问题描述】:
我正在尝试在我的 Angular 4 应用中使用 Google 地图。
我正在使用 Angular 4 和 Nodejs 8。
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, ApplicationRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { AgmCoreModule } from '@agm/core';
@NgModule({
imports: [
BrowserModule,
CommonModule,
FormsModule,
AgmCoreModule.forRoot({
apiKey: 'GOOGLEAPIKEY'
})
],
providers: [],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule {}
请帮帮我??
【问题讨论】:
标签: javascript angularjs angular google-maps