From d4d2d7b5c375994c3f704633e4ec31ec8ee38b8c Mon Sep 17 00:00:00 2001 From: Woody Rousseau Date: Mon, 25 Jan 2016 01:40:54 +0100 Subject: [PATCH] Updates documentation for npm install --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fb41f3d..3510004 100644 --- a/README.md +++ b/README.md @@ -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(); } - }); + }); }) ```