diff options
Diffstat (limited to 'js/vendor/angular-route/README.md')
-rw-r--r-- | js/vendor/angular-route/README.md | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/js/vendor/angular-route/README.md b/js/vendor/angular-route/README.md index 49f55fc0d..b33a0dc33 100644 --- a/js/vendor/angular-route/README.md +++ b/js/vendor/angular-route/README.md @@ -1,12 +1,35 @@ -# bower-angular-route +# packaged angular-route -This repo is for distribution on `bower`. The source for this module is in the +This repo is for distribution on `npm` and `bower`. The source for this module is in the [main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute). Please file issues and pull requests against that repo. ## Install -Install with `bower`: +You can install this package either with `npm` or with `bower`. + +### npm + +```shell +npm install angular-route +``` + +Add a `<script>` to your `index.html`: + +```html +<script src="/node_modules/angular-route/angular-route.js"></script> +``` + +Then add `ngRoute` as a dependency for your app: + +```javascript +angular.module('myApp', ['ngRoute']); +``` + +Note that this package is not in CommonJS format, so doing `require('angular-route')` will +return `undefined`. + +### bower ```shell bower install angular-route @@ -18,7 +41,7 @@ Add a `<script>` to your `index.html`: <script src="/bower_components/angular-route/angular-route.js"></script> ``` -And add `ngRoute` as a dependency for your app: +Then add `ngRoute` as a dependency for your app: ```javascript angular.module('myApp', ['ngRoute']); |