Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wrousseau/angular-defensive
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.2
Choose a base ref
...
head repository: wrousseau/angular-defensive
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 25, 2016

  1. 0.1.2

    wrousseau committed Jan 25, 2016
    Copy the full SHA
    d7ae165 View commit details
  2. 0.1.3

    wrousseau committed Jan 25, 2016
    Copy the full SHA
    0477956 View commit details
  3. Copy the full SHA
    d4d2d7b View commit details
  4. 0.1.4

    wrousseau committed Jan 25, 2016
    Copy the full SHA
    9a40609 View commit details
Showing with 12 additions and 6 deletions.
  1. +11 −5 README.md
  2. +1 −1 package.json
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -8,9 +8,15 @@ Defensive design for your angular application

# Install

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

OR

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

# Including

@@ -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();
}
});
});
})
```

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-defensive",
"version": "0.1.1",
"version": "0.1.4",
"description": "Defensive design for your angular application",
"main": "dist/angular-defensive.js",
"scripts": {