Hi Yonatan, > > 1. I have a menu that's the same for all of my routes/views. The > reason the menu is inside the view and not static in the main index.html > is > that I need data from services and the scope to populate the menu. Is > there > a way to make the menu "static" and not load with every route/view change? > > Sure, create a higher-level controller where you keep your menu-stuff. It's available to all its children, so it's easy to update.
> > 1. I have a directive that is common to many views in my *SPA*. Is > there a way to keep this directive from recompiling on every view change > when it already exists in the referring view? > > You should have your compile command in the compile section of the directive, not in inside the link. Just this morning I posted a sample that does just that. If you can't find it, drop me a note, and I'll look it up for you. Regards Sander -- 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.
