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

Changed reference to BrowserModule to CommonModule instead #1503

Merged
merged 2 commits into from
Jan 16, 2017

Conversation

somombo
Copy link
Contributor

@somombo somombo commented Jan 16, 2017

Importing BrowserModule (into SortableModule) Caused error:
BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.

After trying on lazy loaded app, that had Ng2BootstrapModule.forRoot() imported in root App Module.

ng2-bootstrap Library should not import BrowserModule anywhere.
See NgModule Imports section of Angular Docs for reference

Caused error: 
`BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.`

After trying on lazy loaded app, that had `Ng2BootstrapModule.forRoot()` imported in root App Module.
@somombo somombo changed the title Library Modules should not import BrowserModule anywhere Changed reference to BrowserModule to CommonModule instead Jan 16, 2017
Hopefully it will pass CI tests now!
@codecov-io
Copy link

codecov-io commented Jan 16, 2017

Current coverage is 84.94% (diff: 100%)

Merging #1503 into development will not change coverage

@@           development      #1503   diff @@
=============================================
  Files               82         82          
  Lines             2298       2298          
  Methods             21         21          
  Messages             0          0          
  Branches           296        296          
=============================================
  Hits              1952       1952          
  Misses             246        246          
  Partials           100        100          

Powered by Codecov. Last update 651fcb3...fbd402a

@valorkin
Copy link
Member

Thanks for pointing this out!

@valorkin valorkin merged commit e7105c6 into valor-software:development Jan 16, 2017
@somombo somombo deleted the patch-1 branch January 28, 2017 17:52
@somombo somombo restored the patch-1 branch January 29, 2017 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants