My side panel changes with each page. My application is a point of sale application, it is a site which will be available at the cash register. where you pay for things after selecting the product. In the sales page, the side panel include links to select existing customer, searching products, adding service charges etc. In payment page the side panel includes different payment type like credit card, cash, check, loyalty points. In delivery address page, there is no side panel. In receipt page, the sidepanel has options to print out the receipt or send an email.
Right now I have each sidepanel's html embedded in each of the page. I was looking for bit of extensibility. like i want one main folder has Salepage.html, deliverypage.html, payment.html, receipt.html. another folder which would have salepageside.html, deliverypageside.html. The linking should happen automatically, if i add another html like paymentside.html. It should automatically start appearing in payments page. On Wednesday, 12 August 2015 11:12:46 UTC+5:30, Anton Trapp wrote: > > I don't really understand your 1:1 relationship case, but you can update > multiple views > https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fangular-ui%2Fui-router%2Fwiki%2FMultiple-Named-Views&sa=D&sntz=1&usg=AFQjCNEqwzKtkWbgkKB5Qv9x2OoBJ5pT_w> > > without any problem. You just name one "sidebar", the next "main" or > whatever and in the state definition you tell what belongs to the views > (and controllers, if needed - you mentioned buttons). Nice if you have some > views with the same sidebar. I would take a look just to see the Wiki > topics. > > If you just want to make your files smaller and more readable, maybe you > can use ngInclude instead? > -- 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.
