You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stylesheet of **angular-image-crop** is written in [LESS](http://lesscss.org/).
2
+
3
+
#Setup
4
+
1.[Fork this project](https://help.github.com/articles/fork-a-repo) and clone it on your system.
5
+
2. Create a new branch out off `master` for your fix/feature. `git checkout new-feature master`
6
+
7
+
#Building
8
+
9
+
**angular-image-crop.js** and **angular-image-crop.css** uses [Grunt](http://gruntjs.com/) for the build process which you need to have installed on your system.
10
+
11
+
Also there are four additional Grunt tasks required to build the library:
To install all the dependencies, run `npm install`.
22
+
23
+
Once you have the dependencies installed, run `grunt` from the project directory. This will run the default grunt task which compiles the files in `src` folder and stores them (and their minified forms) into `dist` folder.
24
+
25
+
#Things to remember
26
+
- Before submitting a patch, rebase your branch on upstream `master` to make life easier for the merger/author.
27
+
28
+
-**DO NOT** add the final build files (compiled in `dist` folder) into your commits. It will be compiled again and updated later, once your patch has been merged by the merger/author.
Copy file name to clipboardExpand all lines: README.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,23 @@ I'm attempting to make a self-contained AngularJS Directive which will allow you
14
14
# Browser Support
15
15
* IE10+, Android 3+, iOS 6+, basically all modern browsers!
16
16
17
+
# Installation
18
+
Get the library and its stylesheet using one of the following ways:
19
+
20
+
1.**Github**
21
+
-[unminified] : [angular-angular-image-crop.js](https://raw.githubusercontent.com/andyshora/angular-image-crop/master/dist/angular-image-crop.js) and [angular-image-crop.css](https://raw.githubusercontent.com/andyshora/angular-image-crop/master/dist/angular-image-crop.css)
22
+
-[minified] : [angular-image-crop.min.js](https://raw.githubusercontent.com/andyshora/angular-image-crop/master/dist/angular-image-crop.min.js) and [angular-image-crop.min.css](https://raw.githubusercontent.com/andyshora/angular-image-crop/master/dist/angular-image-crop.min.css)
23
+
24
+
2.**Bower**
25
+
26
+
```
27
+
bower install angular-image-crop
28
+
```
17
29
# Usage
18
30
19
-
1.Add the dependency : `angular.module('myApp',['ImageCropper'])`
20
-
2.Include the stylesheet
21
-
3.Initiatlise the directive [see standalone JSBin](http://jsbin.com/fovovu/1/edit?javascript,output) for example code.
31
+
1.Include both files inside the `<head>` element
32
+
2.Add the dependency : `angular.module('myApp',['ImageCropper'])`
33
+
3.Initialise the directive [see standalone JSBin](http://jsbin.com/fovovu/1/edit?javascript,output) for example code.
22
34
23
35
## Parameters
24
36
@@ -37,7 +49,7 @@ I'm attempting to make a self-contained AngularJS Directive which will allow you
37
49
38
50
### Example markup
39
51
```html
40
-
<image-crop
52
+
<image-crop
41
53
data-height="200"
42
54
data-width="150"
43
55
data-shape="square"
@@ -50,7 +62,7 @@ I'm attempting to make a self-contained AngularJS Directive which will allow you
0 commit comments