Skip to content

Commit 5a97e47

Browse files
committed
Fix #34 - npm installation instructions
1 parent 267b3c5 commit 5a97e47

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
angularjs-color-picker
2-
=====================
1+
# angularjs-color-picker
2+
33

44
AngularJS Color Picker Directive
55

6-
Installation
7-
=====
8-
* Get through bower
6+
## Installation
7+
8+
#### Bower
9+
910
```shell
1011
bower install angularjs-color-picker --save-dev
1112
```
1213

14+
#### Npm
15+
```shell
16+
npm install angularjs-color-picker --save-dev
17+
```
18+
19+
#### Usage
20+
1321
* Include tinycolor.js, angularjs-color-picker.js and angularjs-color-picker.css
1422
```html
1523
<link rel="stylesheet" href="bower_components/angularjs-color-picker/angularjs-color-picker.min.css" />
@@ -29,8 +37,8 @@ angular.module('app', ['color.picker']);
2937
<color-picker ng-model="myColor"></color-picker>
3038
```
3139

32-
Options
33-
=====
40+
## Options
41+
3442
If a list is given then choose one of the items. The first item in the list will be the default.
3543
```html
3644
<color-picker
@@ -46,16 +54,16 @@ If a list is given then choose one of the items. The first item in the list will
4654
></color-picker>
4755
```
4856

49-
Requirements
50-
=====
57+
## Requirements
58+
5159
* angularjs
5260
* bootstrap - looking at removing in future versions if requested enough (currently only used for styling the input text box)
5361
* tinycolor.js - looking at removing in future versions if requested enough (33kb not minified)
5462

5563
NO requirement for jQuery!
5664

57-
Inspiration
58-
=====
65+
## Inspiration
66+
5967
Inspiration and code taken from projects like
6068
* http://kaihenzler.github.io/angular-minicolors/
6169
* http://mjolnic.github.io/bootstrap-colorpicker/

0 commit comments

Comments
 (0)