프로젝트
GitHub에서 보기
allaud/quick-ng-repeat
소개
A much more quicker replacement for AngularJS ng-repeat directive
웹 및 앱 개발What you can do
- Shallow list watch (ngRepeat uses deep watch)
- Animations support
- Special service to cause list render outside of digest cycle
- Smooth scrolling even on heavy compited lists (check example)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAngularJS directive for much more quicker lists rendering
Features
- Shallow list watch (ngRepeat uses deep watch)
- Animations support
- Special service to cause list render outside of digest cycle
- Smooth scrolling even on heavy compited lists (check example)
- About 200% performance boost
- Still hesitating? Try to scroll page with ng-repeat list and a page with quick-ng-repeat
Usage example:
Require quick-ng-repeat.js to your project and use this syntax in your templates:
<ul>
<li quick-ng-repeat="item in list" quick-repeat-list="items">
{{ item.name }}
</li>
</ul>
Installation
Using bower package manager:
bower i quick-ngrepeat --save
Note the single hyphen in the package name
Using the browser:
<script src="quick-ng-repeat.js"></script>
Why we need the 'quick-repeat-list' attribute?
In quick-ng-repeat directive everything is done to make is really fast. So we store a special callback with name of this attribute. This is a full answer
Compared to usual ngRepeat
- Compare
example/index.html(uses quickNgRepeat) andexample/index_classic.html(uses classic NgRepeat)
Example
Directive live example in ./example
Try out the demo (try to scroll): page with ng-repeat list and page with quick-ng-repeat
To run example
cd example && python -m SimpleHTTPServer
관련 프로젝트 살펴보기
불러오는 중…