https://github.com/dbtek/angular-scroll-section-loader
Angular directive for auto section loading with scroll event
https://github.com/dbtek/angular-scroll-section-loader
Last synced: 11 months ago
JSON representation
Angular directive for auto section loading with scroll event
- Host: GitHub
- URL: https://github.com/dbtek/angular-scroll-section-loader
- Owner: dbtek
- Created: 2014-04-17T12:37:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T16:51:29.000Z (over 10 years ago)
- Last Synced: 2025-01-18T07:12:23.686Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#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.
```html
```
Add ```scrollSectionLoader``` as a dependency in your Angular app.
```js
var app = angular.module('myApp',['scrollSectionLoader']);
```
In controller:
```js
$scope.sections = ['about','services','contact']; //html files to load (about.html, etc)
$scope.loadedSections = [$scope.sections[0]]; //loaded html files
```
In html:
```html
```
##Author
Ismail Demirbilek [@dbtek](http://twitter.com/dbtek)
##License
[MIT](http://opensource.org/licenses/MIT)