UNPKG

ampersand-collection-view

Version:

Renders a collection with one view per model within an element in a way that cleans up and unbinds all views when removed.

28 lines (15 loc) 638 B
# AmpersandCollectionView ![](https://travis-ci.org/AmpersandJS/ampersand-collection-view.svg) ![](https://badge.fury.io/js/ampersand-collection-view.svg) Renders a collection with one view per model within an element in a way that cleans up and unbinds all views when removed. This is the view used by main ampersand-view for `renderCollection`. ## install ``` npm install ampersand-collection-view ``` ## API Reference ### views Exposes an array of views contained within the collection view. This is a *raw array*, not a collection. ## credits Written by [@HenrikJoreteg](http://twitter.com/henrikjoreteg). ## license MIT