angularjs - Is there a easier way to include $dialog bootstrap-ui component into our code -


folks,

i wondering if there better way include $dialog module in angular code.

please @ plunkr : http://plnkr.co/edit/yxf1knmqhado3im8dfby

all open modal upon clicking button. setting modal messy have put code in main controller (which testctrl incase of plunkr)

does know how make directive can have in template click here open modal

thanks,

i can't see code, if create directive, can move controller code directive link function , output dom elements through template property of directive.

even if don't want mess template replacement, can @ least move code controller directive , have modal html hidden area in main view. have done whenever have used modal.

here plunkr did illustrates pulling controller code directive: http://plnkr.co/edit/3esmvm?p=preview


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -