DerbyJS get model as array -


i want able collection array can in template use {{each}} on it.

it collection of users, objects, {{each}} doesn't work objects

specifically, can call model.filter() null function, , create list out of items in input object. can handy way render subscribed items in collection, since arrays can used input {{each}} template tags.

 var filter = model.filter( model.scope('pants'), null);  filter.ref('_page.pantsarray'); 

here link more details on how use filters in derby documentation: http://derbyjs.com/docs/derby-0.6/models/filters-and-sorts


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -