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

Add ApolloModule #63

Merged
merged 2 commits into from Aug 12, 2016
Merged

Add ApolloModule #63

merged 2 commits into from Aug 12, 2016

Conversation

kamilkisiela
Copy link
Owner

@kamilkisiela kamilkisiela commented Aug 12, 2016

  • add to changelog
  • v0.4.2 to be released

Requires @angular/core^2.0.0-rc.5

Usage:

import { ApolloModule } from 'angular2-apollo'; 

import { NgModule }       from '@angular/core';
import { BrowserModule  } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppComponent }   from './app.component';
import { client } from './client';

@NgModule({
    declarations: [ AppComponent ],
    imports:      [
        BrowserModule,
        ApolloModule // or ApolloModule.withClient(client)
    ],
    bootstrap:    [ AppComponent ],
})
export class AppModule {}

platformBrowserDynamic().bootstrapModule(AppModule);

@kamilkisiela
Copy link
Owner Author

Closes #61

@kamilkisiela kamilkisiela mentioned this pull request Aug 12, 2016
3 tasks
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.

None yet

1 participant