他zd q是ls
发自我的小米手机 [email protected]编写: > Today's Topic Summary > >Group: http://groups.google.com/group/angular/topics > >Dynamically Adding Directives [1 Update]Is it bad practice to assign multiple >controllers per route? [1 Update] > > Dynamically Adding Directives > >Jacob Valenta <[email protected]> Feb 21 03:12PM -0800 > >I have been using AngularJS for a little while now, and we would like to >design our app with it, but the design of the app is very difficult for me >to picture in Angular. > >Basically, the design is centered around panes (Think left to right, all >panes are siblings) . We would like it so you can click a link in one pane, >and a new pane will be created and filled with content. > >Our software uses Customers, Items, Transactions and more. and we would >like it to function more or less like this: > >A Customer Pane is opened, showing details about the customer. In this >pane, the customer's Items are listed. When the user clicks a specific >Item, another pane is opened (Without closing the last one). On this new >Item pane, there could be a link to the transaction, which would open >another pane with the transactions. On this pane, the customer could be >linked to again, which would open (A Second) Customer Pane. > >My initial thoughts have been towards directives likes <pane></pane> ><customer></customer>(for links to customers, which would open in new >panes) <item></item>, and <transaction></transaction> > >My question is how would I go about adding a new pane dynamically from >these other directives? >(Also any warnings/pitfalls/insights about this design are welcome!) > > > > Is it bad practice to assign multiple controllers per route? > >Keoki Zee <[email protected]> Feb 21 02:00PM -0800 > >Thanks for the advice guys! > >On Thursday, February 20, 2014 4:09:08 PM UTC-5, Luke Kende wrote: > > > >-- >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/groups/opt_out. -- 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/groups/opt_out.
