Permalink
Browse files

Update README with installation instructions

  • Loading branch information...
1 parent 7bf985e commit d6786eb716f682ea1def2b4a44b2d05ecb441ef7 @iHiD committed Apr 3, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 README.md
View
@@ -5,13 +5,19 @@ This adds infinite pagination to [Ember JS](http://emberjs.com/). It works, but
Please add issues galore as I intend to make this good :smiley:
+## Installation
+
+You can download the [latest version](https://raw.github.com/iHiD/ember-infinite-pagination/master/bin/ember-infinite-pagination.min.js) from Github. Don't link to this file as Github won't send JS headers.
+
+You also need jQuery.inView, which you can get the [latest version](https://raw.github.com/protonet/jquery.inview/master/jquery.inview.min.js) from their [Github Repository](https://github.com/protonet/jquery.inview).
+
## Usage
In your route, you need to setup the controller to have the correct data. Simply pass in your store, model and controller, and the data will be loaded from your paginationParams (see under config).
``` javascript
App.BlogPostsRoute = Ember.Route.extend({
setupController: function(controller) {
- IHID.InfinitePagination.setupRoute(App.store, App.BlogPost, controller)
+ IHID.InfinitePagination.setupRoute(App.BlogPost, controller)
}
})
```
@@ -111,4 +117,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+SOFTWARE.

0 comments on commit d6786eb

Please sign in to comment.