From b0d6a3cd27bbd319c7c534160f110f3e597962eb Mon Sep 17 00:00:00 2001 From: Simon Poole Date: Sun, 1 Jan 2017 17:03:22 +0000 Subject: [PATCH 1/2] Include installation section in readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 8e1b683..bc0a95e 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,15 @@ This is a simple library written as a module for [AngularJS](https://github.com/ This library requires ***no dependencies whatsoever*** (except angular.js of course), so ***you no longer need to include jQuery and jQueryUI and angularUI*** which altogether gives the size of around ***340kB minified***. Whereas the [angular-sortable-view](https://github.com/kamilkp/angular-sortable-view) is only ***5kB minified!***. +###INSTALLATION +Include angular-sortable-view.min.js in your application, or via [cdnjs](https://cdnjs.com/libraries/angular-sortable-view) + + + +Add angular-sortable-view as a dependency in your application. + + angular.module('yourApp', ['angular-sortable-view']) + ###API: The API is declarative. There are four directives (hooked on attributes) that need to be nested properly: From 17357a0d4794eac6198ac42c9910979208200d3a Mon Sep 17 00:00:00 2001 From: Simon Poole Date: Sun, 1 Jan 2017 17:06:56 +0000 Subject: [PATCH 2/2] Add bower to readme --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc0a95e..89acf58 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,15 @@ This is a simple library written as a module for [AngularJS](https://github.com/ This library requires ***no dependencies whatsoever*** (except angular.js of course), so ***you no longer need to include jQuery and jQueryUI and angularUI*** which altogether gives the size of around ***340kB minified***. Whereas the [angular-sortable-view](https://github.com/kamilkp/angular-sortable-view) is only ***5kB minified!***. ###INSTALLATION -Include angular-sortable-view.min.js in your application, or via [cdnjs](https://cdnjs.com/libraries/angular-sortable-view) +Include angular-sortable-view.min.js in your application + +Via cdnjs - +Via Bower + + bower install angular-sortable-view + Add angular-sortable-view as a dependency in your application. angular.module('yourApp', ['angular-sortable-view'])