virtual-for

1.0.1 • Public • Published

virtual-for

virtual-for allows an app to show huge lists of items much more performantly than ng-repeat.

It renders into the DOM only as many items as are currently visible.

This means that on a phone screen that can fit eight items, only the eight items matching the current scroll position will be rendered.

Installation

# use npm
npm install virtual-for

Usage

var basicApp = angular.module("basicApp", ["virtualFor"]);
    <div virtual-for='[
         { "name" : "Matrix" },
         { "name" : "This the End" },
         { "name" : "Ghostbusters" }]'
         virtual-for-of="movie">

        <h1>{{ movie.name }} </h1>

    </div>

See the changelog for changes and roadmap.

Readme

Keywords

none

Package Sidebar

Install

npm i virtual-for

Weekly Downloads

3

Version

1.0.1

License

ISC

Last publish

Collaborators

  • quinntynebrown