I have installed this with npm install angular2-google-maps
and included it in my gulpfile like this: 'node_modules/angular2-google-maps/bundles/angular2-google-maps.js',
so it is included but I get an SyntaxError unexpected token<
my map structure:
I saw at this: Issue
That there is something wrong with the system.config, but I don't know how to set this right!
Here the system.config:
/**
* Import angular2 components
*/
System.config({
transpiler: 'typescript',
typescriptOptions: { emitDecoratorMetadata: true },
packages: {
'/angular': {
defaultExtension: 'ts'
}
}
});
System.import('/angular/main')
.then(null, console.error.bind(console));