DISCLAIMER
Angular 2 is still in the works. The core concepts are solid, but the API may change. If you find that a code snippet that does not work, please message me, and I will update.
Click for the Demo
See src/demo for demo app with examples.
Will try to add documented examples if time allows.
git clone https://github.com/shlomiassaf/angular2-modal.git
npm install
typings install
webpack-dev-server // development, webpack -p to build.
browse to localhost:3000
You can apply custom modals based on components.
Not so complicated but not in angular 2 at the moment.
Set webpack do build angular2-module.js as an initial webpack module (currently its not...) This will allow using it as an input for other projects.
Reduce manual DOM interaction, do more usage of
host object in @Component.Append child to the DOM using the angular 2 way, if you know tell me.
Currently blocking an element requires it to have an angular template variable placed in one of his children. This is due to the current angular implementation, as I see it. I have yet to find an angular way of inserting a compiled element to a native element/component without effecting it. See issue 6071
Make it fly solo....
Generated using TypeDoc