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) forRoot #49

Open
mysvit opened this issue Feb 23, 2017 · 1 comment
Open

(feat) forRoot #49

mysvit opened this issue Feb 23, 2017 · 1 comment

Comments

@mysvit
Copy link

mysvit commented Feb 23, 2017

Hi,

The ngd doesn't see anything inside forRoot().

Thanks.

export class SharedModule {
   static forRoot(): ModuleWithProviders {
    return {
      ngModule: SharedModule,
      providers: [ MyService, ExampleService]
    };
  }
}

@manekinekko
Copy link
Member

Sorry, ngd doesn't crawl forRoot() function by design (for now).

@manekinekko manekinekko changed the title forRoot (feat) forRoot Sep 16, 2017
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

2 participants