FAQ Database Discussion Community

Ui Router: composite view render view once

What I want to achieve is have 2 sibling views, where 1 is run-once and the other will get updated. I have a template like so: <body> <ui-view="header /> <ui-view="body" /> </body> And I have 1 catch-all state: .state('root', { params: { … }, resolve: { data: fn() { …...

Marionette CompositeView - change in template each nth items

I'm using Marionette for a while, but I'm not sure how I can do what I want, in a simple manner. I have a composite view, which renders something like this: <div class="row"> <div class="col-xs-12"> <div id="items"></div> </div> </div> Each of my item is being rendered as a: <div class="col-xs-3">foo</div>...