Hey all,
first of all, thank you very much for such a great project to start of from.
I have a question regarding the use of modals from ui-bootstrap with this that I don't quite understand.
Im sure its something simple that I must have missed.
anyways.
the following is what currently works for me
I was trying all kinds of ways to externalize the site.controller from sites.controller but couldnt get it to work. Even with resolve and injecting uibModalInstance into the site.controller etc and adding the template to site.html it wouldnt work. Either it complained about no such provider (modalInstance) or it would not resolve the site/close/dismiss properties.
I am aware ui-bootstrap isnt fully 1.5 compliant and thus you need the controllerAs etc, but is there a way I can clean this up a bit more ?
Any help appreciated.
Hey all, first of all, thank you very much for such a great project to start of from. I have a question regarding the use of modals from ui-bootstrap with this that I don't quite understand. Im sure its something simple that I must have missed. anyways. the following is what currently works for me
sites.controller.js
and this is the site component file with the bindings. site.component.js
I was trying all kinds of ways to externalize the site.controller from sites.controller but couldnt get it to work. Even with resolve and injecting uibModalInstance into the site.controller etc and adding the template to site.html it wouldnt work. Either it complained about no such provider (modalInstance) or it would not resolve the site/close/dismiss properties. I am aware ui-bootstrap isnt fully 1.5 compliant and thus you need the controllerAs etc, but is there a way I can clean this up a bit more ? Any help appreciated.