Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support @NgModule #560

Closed
sebholstein opened this issue Aug 11, 2016 · 0 comments
Closed

Support @NgModule #560

sebholstein opened this issue Aug 11, 2016 · 0 comments
Assignees
Milestone

Comments

@sebholstein
Copy link
Owner

As the new @NgModule decorator is the new way to organize dependencies, angular2-google-maps should support it und ship useful modules.

@sebholstein sebholstein self-assigned this Aug 11, 2016
@sebholstein sebholstein added this to the 0.13.0 milestone Aug 11, 2016
sebholstein added a commit that referenced this issue Aug 15, 2016
This adds a new NgModule to the project. The Module name for the
core package is `AgmCoreModule`. This feature is experimental.

Example:

```typescript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from
'@angular/platform-browser-dynamic';
import { MyMapsProjectAppComponent } from './app/';

import {AgmCoreModule} from 'angular2-google-maps/core';

@NgModule({
	  imports: [BrowserModule, AgmCoreModule.forRoot()],
		declarations: [MyMapsProjectAppComponent],
	  bootstrap: [MyMapsProjectAppComponent]
})
export class AppModule {
}

platformBrowserDynamic().bootstrapModule(AppModule);
```

Closes #560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant