Check out the github repo for ui-bootstrap. There's a bunch of pretty clever stuff in there:
https://github.com/angular-ui/bootstrap in particular, the modal service does something similar to what you're talking about. e On Thu, Jul 17, 2014 at 9:25 AM, Raj <[email protected]> wrote: > Hey guys, > > I've got an idea and I don't know how to realize it. > I want to create a simple application and as a UI I want to use a simple > dialog based UI. > So every functionality of my app should be done in a new dialog. > > To realize this I created a new factory as a "WindowManager" ... In an > array are stored all created dialogs with their recent state (open, > minimized) > The WindowManager should have the fuctions "createWindow", > "minimizeWindow" and "destroyWindow" to handle the dialogs ... > > But now I do not know how to proceed ... createWindow(title) has to load > the template file and compile it and append it into the DOM ... > I thought about loading the template via $http and then using $compile to > compile the string and put the result into the DOM ... But I don't have any > idea > how to get the title into the template ... Any ideas? Hope u guys can help > me out ... Maybe I think way too difficult ... > > Greetz > Raj > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
