I've created an Angular2 project with Angular-CLI but when I try to install external dependencies the compiler doesn't move the folder from node_modules to dist/vendor.
This is what I've done:
$ npm install --save angular2-google-maps
$ ng serve
My component file:
import {Component} from 'angular2/core';
import {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from 'angular2-google-maps/core';
@Component({
selector: 'contact',
templateUrl: 'app/components/contact/contact.html',
styleUrls: ['app/components/contact/contact.css'],
providers: [],
directives: [ANGULAR2_GOOGLE_MAPS_DIRECTIVES],
pipes: []
})
export class Contact {
lat: number = 51.678418;
lng: number = 7.809007;
constructor() {}
}
when I run ng serve and go to the web browser I get the following error:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:4200/angular2-google-maps/core