basicScroll
ngx-basicscroll - Angular wrapper toDemo
View all the directives in action at https://theunreal.github.io/ngx-basicscroll
Dependencies
- Angular (requires Angular 2 or higher, tested with 2.0.0)
Installation
Install above dependencies via npm.
Now install ngx-basicscroll
via:
npm install --save basicscroll ngx-basicscroll
SystemJS
Note:If you are using
SystemJS
, you should adjust your configuration to point to the UMD bundle. In your systemjs config file,map
needs to tell the System loader where to look forngx-basicscroll
:
map: 'ngx-basicscroll': 'node_modules/ngx-basicscroll/bundles/ngx-basicscroll.umd.js'
Once installed you need to import the main module:
;
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice BasicScrollModule .forRoot()
):
; @
Other modules in your application can simply import BasicScrollModule
:
; @
Usage
<bs-element options="bsOptions" class="box easeBox">1</bs-element>
Example of bsOptions:
Example SCSS:
License
Copyright (c) 2018 Eliran Elnasi. Licensed under the MIT License (MIT)