Hi, In my SPA, I have several directives (or DOM elements with directives, if you like) that repeat themselves. Caching simple HTML snippets is just like caching strings. This becomes more complex when I have a more dynamic structure. Here are 3 examples. 1) I have a webGL plugin that is being handled by a directive. I want it to be the same in all pages, and not refresh completely on route change (e.g. view change). 2) I have some <div> which is fully packed with directives that made a lot of work (<div directive1 directive2><ng-include src="'somePartial.html"></ng-include></div>). I don't want it all to load - just be put back in place and then continue as usual. 3) A "kendoui" element (i.e. a grid), which also comes with a whole "data" object (this case is relatively simple, as I would probably need to remember the grid's view() only, but if time can be saved on setting up the grid, it can be nice). Is caching good for me? Would caching the DOM element and putting it back in place on view change work (in regards to plugins/directives actions and watchers)? Is it safe (in regards to watchers etc)? Thanks :)
-- 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.
