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

Can't use Modal #1143

Closed
asnike opened this issue Oct 20, 2016 · 5 comments
Closed

Can't use Modal #1143

asnike opened this issue Oct 20, 2016 · 5 comments

Comments

@asnike
Copy link

asnike commented Oct 20, 2016

Hello, guys.
I used ng2-bootstrap module. I tried to open modal on my app. But, it occured error.
I try to find a solution. But there're no solution.
image

I followed the modal example in demo page exactly same.
Please help

Sorry about my english

@hkb1990
Copy link
Contributor

hkb1990 commented Oct 20, 2016

Did you import { ModalModule } from 'ng2-bootstrap/ng2-bootstrap'; and imports ModalModule to your modules?

...
import { ModalModule } from 'ng2-bootstrap/ng2-bootstrap';
import { App } from './app';
...

@NgModule({
  bootstrap: [App],
  declarations: [
  ],
  imports: [
    ...,
    ModalModule,
    ...
  ],
  providers: [
  ]
})

@asnike
Copy link
Author

asnike commented Oct 21, 2016

Yes, I did. Already import my app module.
I installed ng2-bootstrap by npm.

@hkb1990
Copy link
Contributor

hkb1990 commented Oct 21, 2016

Maybe it's the same issue as #1027 .

valorkin pushed a commit that referenced this issue Nov 4, 2016
Given issues #1027 and #1143, ModalModule import instructions should indicate where to import the module.
@soupman99
Copy link

soupman99 commented Nov 5, 2016

+1 Followed the instructions and still running into the error

@tonimaristelaestabillo
Copy link

Try ModalModule.forRoot() instead of ModalModule.

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

5 participants