FAQ Database Discussion Community


Marionette CompositeView - change in template each nth items

twitter-bootstrap,backbone.js,marionette,composite-view
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>...

Ui Router: composite view render view once

javascript,angular-ui-router,state,composite-view
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() { …...