-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't bind to 'collapse' since it isn't a known property of 'div' #1049
Comments
Oops ignore that I didn't notice that it had already been imported. |
@Martin-Wegner You are right, but It seems that I made an error on pasting the code example here. Even if I add the devBarComponent the error exists. The problem is that on the server I can't import the Ng2BootstrapModule. If I do so I got the following error:
I need a way to ignore those directives on the server side somehow. |
Oh this is #964 |
That means no solution right now? |
Yes a lot of hope, at ng conf they will announce interesting things. So SSR compatibility will be mandatory |
For anyone has the same issue please refere to the answer here https://support.aspnetzero.com/QA/Questions/4967/Collapse-component-causes-error |
Hello!, try with this lines in the component's parent module
|
I'm getting the error above when using a collapse element with Angular 2.0.0 and ng2-bootstrap 1.1.5 with webpack 2.1.0-beta.22. I have to add, that I'm working on an angular-universal project (https://github.com/angular/universal). Not sure if the error is related to that. Here is my configuration.
main.browser.ts
devbar.component.ts
devbar.component.html
Any advice for that problem?
The text was updated successfully, but these errors were encountered: