Skip to content

Commit

Permalink
chore: create npm reference (close #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyTheTank committed Jan 6, 2016
1 parent 7e4f850 commit fa8f513
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,25 @@ Author: Jonathan Hornung ([JohnnyTheTank](https://github.com/JohnnyTheTank))

## Usage

1. Install via [bower](http://bower.io/) :
1. Install via either [bower](http://bower.io/), [npm](https://www.npmjs.com/) or downloaded files:
1. `bower install --save angular-openweathermap-api-factory`
2. `npm install --save angular-openweathermap-api-factory`
3. download [angular-openweathermap-api-factory.zip](https://github.com/JohnnyTheTank/angular-openweathermap-api-factory/zipball/master)
2. Add `jtt_openweathermap` to your application's module dependencies.
3. Include dependencies in your HTML.
1. When using bower:

```html
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-openweathermap-api-factory/src/angular-openweathermap-api-factory.js"></script>
<script src="bower_components/angular-openweathermap-api-factory/src/angular-openweathermap-api-factory.min.js"></script>
```

4. Use the factory `openweathermapFactory`.
2. When using npm:
```html
<script src="node_modules/angular-openweathermap-api-factory/src/angular-openweathermap-api-factory.min.js"></script>
```
3. when using downloaded files
```html
<script src="angular-openweathermap-api-factory.min.js"></script>
```
4. Use the factory `openweathermapFactory`


### factory methods
Expand Down

0 comments on commit fa8f513

Please sign in to comment.