Code Monkey home page Code Monkey logo

ng-pagination's Introduction

ng-Pagination

Build Status

ng-Pagination is a directive for AngularJS to handle all kinds of pagination for you. It will generate valid html for bootstrap-pagination.

Demos

Check out the demos in the github repository.

Version Numbers

ng-Pagination follows semantic versioning and uses the following versioning scheme:

  • Versions starting with 0 (e.g. 0.1.0, 0.2.0, etc.) are for initial development, and the API is not stable
  • Versions with an even minor version (1.0.0, 1.4.0, 2.2.0, etc.) are stable releases
  • Versions with an odd minor version (1.1.0, 1.3.0, 2.1.0, etc.) are development releases

Getting Started

  • Download ng-Pagination from the github repository

  • Include the script tag on your page after the AngularJS tag (ng-Pagination does not require jQuery to run)

     <script type='text/javascript' src='path/to/angular.min.js'></script>
     <script type='text/javascript' src='path/to/ng-infinite-scroll.min.js'></script>
    
  • Ensure that your application module specifies Pagination as a dependency:

     angular.module('myApplication', ['Pagination']);
    
  • Use the directive by specifying an Pagination attribute on an element.

     <div pagination="data" page="page"></div>
    

Note that neither the module nor the directive use the ng prefix, as that prefix is reserved for the core Angular module.

Detailed Documentation

ng-Pagination accepts several attributes to customize the behavior of the directive; detailed instructions will follow here later. If you have questions feel free to open an issue

License

ngPagination is licensed under the MIT license. See the LICENSE file for more details.

Testing

ngPagination uses Testacular for its unit tests. Note that you will need PhantomJS on your path, and the grunt-cli npm package installed globally if you wish to use grunt (npm install -g grunt-cli). Then, install the dependencies with npm install.

  • grunt test - continually watch for changes and run tests in PhantomJS and Chrome
  • npm test - run tests once in PhantomJS only

ng-pagination's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.