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