Sebastian
Member since May 8, 2015
- Profile: /members/12644-sebastian.htm
- URL: http://www.silentdrop.es
- Comments: 2
Recent Blog Comments By Sebastian
-
Creating A Simple Modal System In AngularJS
Posted on May 28, 2015 at 5:24 AM
Yes you're right it could get very complex on the directive side. That's why I embed another directive for the content inside the modal. The template of the modal is just: "<div class="modal"></div>" As I don't know how many modals I might need and don't really like ... read more »
-
Creating A Simple Modal System In AngularJS
Posted on May 8, 2015 at 7:26 AM
Hi, Thanks for this great article. Any good reason why you don't compile at runtime the Modal directive and add it to the DOM? For example Inside the modal service open() method do something like: var html = $compile('<bn-modals data-view="alert" class="m-modals" />')($roo... read more »