I have successfully integrated the angular2-google-map
with my angular2 application.
Below is the content of app.module.ts file:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { AgmCoreModule} from 'angular2-google-maps/core';
@NgModule({
imports: [ BrowserModule, AgmCoreModule.forRoot({apiKey: 'AIzaSyAe3ci9yavJcWt7MaJE8DusAuZo-QeRqkU'}) ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ],
})
export class AppModule { }
In order to install angular2-google-maps, I used the following command:
npm install angular2-google-maps --save
The installation was successful. However, when I try to run the application using npm start, an error is encountered:
http://localhost:3000/angular2-google-maps/core Failed to load resource: the server responded with a status of 404 (Not Found)
Although the angular2-google-maps folder exists within the node_modules directory, I am facing this issue. Can anyone assist me in resolving it?