Skip to main content

Sebastian

Member since May 8, 2015

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel