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

ERROR in SplitPaneModule is not an NgModule #25

Open
burjua opened this issue May 10, 2017 · 1 comment
Open

ERROR in SplitPaneModule is not an NgModule #25

burjua opened this issue May 10, 2017 · 1 comment

Comments

@burjua
Copy link

burjua commented May 10, 2017

I've installed ng2-split-pane (v1.3.1) to my Angular 4.1.0 app with npm and trying to build it with Angular-cli. I get 'ERROR in SplitPaneModule is not an NgModule'

I also tried v1.3.0 mentioned in one of other issues, but that giving me 'Cannot find module 'ng2-split-pane''

@burjua
Copy link
Author

burjua commented May 11, 2017

We figured it out with a colleague of mine.
The module is not exported to the root so in order to make v1.3.1 to work it has to be imported like that:
import { SplitPaneModule } from 'ng2-split-pane/lib/ng2-split-pane';

Also, the sample code is not working properly, primary-component-toggled-off has to go inside square brackets, like that:
[primary-component-toggled-off]="false"
Otherwise primary component is not displayed.

lautarobock added a commit to lautarobock/ng2-split-pane that referenced this issue May 12, 2017
Fix bold title and add brackets acording to wannabegeek#25
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

No branches or pull requests

1 participant