Skip to content

Commit

Permalink
Updates documentation for npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
wrousseau committed Jan 25, 2016
1 parent 0477956 commit d4d2d7b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ Defensive design for your angular application

# Install

```
npm install --save angular-defensive
```

OR

```
bower install --save angular-defensive
````
```

# Including

Expand All @@ -25,13 +31,13 @@ Configurations should be registered into a run block. You can add to a configura
```javascript
.run(function(CheckPreset, DefensiveConfiguration) {
DefensiveConfiguration.registerConfiguration('requiresNetwork')
.addCase({
.addCase({
caseName: 'noNetwork',
templateUrl: 'templates/no-network.html',
check: function() {
templateUrl: 'templates/no-network.html',
check: function() {
return CheckPreset.noNetwork();
}
});
});
})
```

Expand Down

0 comments on commit d4d2d7b

Please sign in to comment.