angular-scroll-section-loader

Angular directive for auto section loading with scroll event.
1 person uses it
Author: 310612?v=3 dbtek

Angular JS Scroll Section Loader

Auto section loader with scroll event for Angular JS.

Install

Bower: bower install angular-scroll-section-loader

Usage

Include module in your html.
<script src="/angular-scroll-section-loader/scroll-section-loader.js"></script>

Add scrollSectionLoader as a dependency in your Angular app.
var app = angular.module('myApp',['scrollSectionLoader']);

In controller: $scope.sections = ['about','services','contact']; //html files to load (about.html, etc)

In html: <section ng-repeat="section in loadedSections" ng-include="section+'.html'" scroll-section sections="sections" loaded-sections="loadedSections">

Author

Ismail Demirbilek @dbtek

License

MIT

comments powered by Disqus
This page was last updated over 3 years ago.