3

I'm trying to wrap the Bootstrap Modal dialog in an Angular 2 component/directive/...

Not having much luck though. I've had a look at https://github.com/shlomiassaf/angular2-modal but many of the APIs used there aren't available anymore in the latest release - 0.46.

I would like a service that opens/closes the dialog. In order to do so, I would need something to manipulate the DOM. Injecting a Renderer, ElementRef, etc. don't seem to suffice.

On additional caveat is that a Modal needs to insert a non-clickable backdrop so a simple component won't do since it can only influence the DOM locally.

Mark Rajcok
  • 362,217
  • 114
  • 495
  • 492
bertvh
  • 821
  • 1
  • 7
  • 17

0 Answers0