Vis*_*dar 4 javascript google-maps angularjs angular
我正试图在我的角度4应用程序中使用谷歌地图.
我正在使用Angular 4和Nodejs 8.
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 {}
Run Code Online (Sandbox Code Playgroud)
请帮我 ??
| 归档时间: |
|
| 查看次数: |
7863 次 |
| 最近记录: |