diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 08:54:46 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-06 09:02:26 +0100 |
commit | 0a97b588d0fbb677614961a7b77aed77aa160014 (patch) | |
tree | cfe00eda29709ed8d19a8daf338782ba69abc073 /js/vendor/angular/README.md | |
parent | 2c4cc6ce0bd25efab0fc4cf57e3e7ee358569761 (diff) |
update dev deps and angular
Diffstat (limited to 'js/vendor/angular/README.md')
-rw-r--r-- | js/vendor/angular/README.md | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/js/vendor/angular/README.md b/js/vendor/angular/README.md index fc0c09987..897fb7f01 100644 --- a/js/vendor/angular/README.md +++ b/js/vendor/angular/README.md @@ -1,18 +1,37 @@ -# bower-angular +# packaged angular -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). 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 +``` + +Then add a `<script>` to your `index.html`: + +```html +<script src="/node_modules/angular/angular.js"></script> +``` + +Note that this package is not in CommonJS format, so doing `require('angular')` will return `undefined`. +If you're using [Browserify](https://github.com/substack/node-browserify), you can use +[exposify](https://github.com/thlorenz/exposify) to have `require('angular')` return the `angular` +global. + +### bower ```shell bower install angular ``` -Add a `<script>` to your `index.html`: +Then add a `<script>` to your `index.html`: ```html <script src="/bower_components/angular/angular.js"></script> |