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

feat(*): support @NgModule #571

Closed
wants to merge 1 commit into from
Closed

feat(*): support @NgModule #571

wants to merge 1 commit into from

Conversation

sebholstein
Copy link
Owner

This adds a new NgModule to the project. The Module name for the
core package is AgmCoreModule. This feature is experimental.

Example:

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

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
@sebholstein sebholstein added this to the 0.13.0 milestone Aug 15, 2016
@sebholstein sebholstein self-assigned this Aug 15, 2016
@ghost ghost deleted the ng-module branch September 17, 2019 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant