我正在尝试在我的 Angular 4 应用程序中使用 Google map 。
我正在使用 Angular 4 和 Nodejs 8。
应用程序模块.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 {}
请帮帮我??
最佳答案
npm install @agm/core --save
这个命令解决了我的问题。非常感谢。
关于javascript - 找不到模块 '@agm/core',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45081665/