smart-view

0.2.0 • Public • Published

How to use this project

Environment Setup

  1. Global Dependencies
  1. Project Dependencies
  • Install Node modules

    $ npm install

Build file

  1. Build JavaScript file
  • Run build command will creat smartview.js file under dist folder

     $ npm run build
  1. Build min JavaScript file
  • Run build command will creat smartview.min.js file under dist folder

    $ npm run build:min

How to use this

  • Link in :
#!javascript
<script type="text/javascript" src="../dist/smartview.js"></script>

let viewAbility = new SmartView(element).getMethod();
viewAbility.isView();

  • or copy folder under src to your project then import SmartView
#!javascript
import { SmartView } from './viewability/SmartView';
    
let viewAbility = new SmartView(element).getMethod();
viewAbility.isView();

  • A great resource to search for issues not explicitly covered by documentation

Readme

Keywords

Package Sidebar

Install

npm i smart-view

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • smartview