You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.0 KiB

7 years ago
  1. # packaged angular-route
  2. This repo is for distribution on `npm` and `bower`. The source for this module is in the
  3. [main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute).
  4. Please file issues and pull requests against that repo.
  5. ## Install
  6. You can install this package either with `npm` or with `bower`.
  7. ### npm
  8. ```shell
  9. npm install angular-route
  10. ```
  11. Then add `ngRoute` as a dependency for your app:
  12. ```javascript
  13. angular.module('myApp', [require('angular-route')]);
  14. ```
  15. ### bower
  16. ```shell
  17. bower install angular-route
  18. ```
  19. Add a `<script>` to your `index.html`:
  20. ```html
  21. <script src="/bower_components/angular-route/angular-route.js"></script>
  22. ```
  23. Then add `ngRoute` as a dependency for your app:
  24. ```javascript
  25. angular.module('myApp', ['ngRoute']);
  26. ```
  27. ## Documentation
  28. Documentation is available on the
  29. [AngularJS docs site](http://docs.angularjs.org/api/ngRoute).
  30. ## License
  31. The MIT License
  32. Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
  33. Permission is hereby granted, free of charge, to any person obtaining a copy
  34. of this software and associated documentation files (the "Software"), to deal
  35. in the Software without restriction, including without limitation the rights
  36. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  37. copies of the Software, and to permit persons to whom the Software is
  38. furnished to do so, subject to the following conditions:
  39. The above copyright notice and this permission notice shall be included in
  40. all copies or substantial portions of the Software.
  41. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  42. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  43. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  44. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  45. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  46. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  47. THE SOFTWARE.