packaged angular-resource
This repo is for distribution on npm
and bower
. The source for this module is in the
main AngularJS repo.
Please file issues and pull requests against that repo.
Install
You can install this package either with npm
or with bower
.
npm
npm install angular-resource
Then add ngResource
as a dependency for your app:
angular.module('myApp', [require('angular-resource')]);
bower
bower install angular-resource
Add a <script>
to your index.html
:
<script src="/bower_components/angular-resource/angular-resource.js"></script>
Then add ngResource
as a dependency for your app:
angular.module('myApp', ['ngResource']);
Documentation
Documentation is available on the
AngularJS docs site.
License
The MIT License
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
1.5.5 material-conspiration (2016-04-18)
Reverts
-
$compile: move setting of controller data to single location
Reverted commit 21d148ae
since it caused the Angular Material tabs directive to fail.
-
ngRoute: allow ngView
to be included in an asynchronously loaded template
Eagerly loading $route
, could break tests, because it might request the root or default route
template (something $httpBackend
would know nothing about).
It will be re-applied for v1.6.x
, with a breaking change notice and possibly a way to disable
the feature in tests.
(8237482d,
#1213, #6812,
#14088)
Bug Fixes
- $compile:
- $injector: ensure functions with overridden
toString()
are annotated properly
(d384834f,
#14361)
- ngAnimate:
- remove event listeners only after all listeners have been called
(79604f46,
#14321)
- fire callbacks when document is hidden
(c7a92d2a,
#14120)
- fire callbacks in the correct order for certain skipped animations
(90da3059)
- ngClass: fix watching of an array expression containing an object
(f975d8d4,
#14405)
- ngMock: fix collecting stack trace in
inject()
on IE10+, PhantomJS
(e9c718a4,
#13591, #13592, #13593)
- ngOptions: set select value when model matches disabled option
(832eba5f,
#12756)
- $http: pass event object to
eventHandlers
/uploadEventHandlers
(25d4e5cc,
#14436)
Features
- $compile:
- $componentController: provide isolated scope if none is passed (#14425)
(33f817b9,
#14425)
- $http:
- $parse: add the ability to define the identifier characters
(3e7fa191)
- ngAnimate: let $animate.off() remove all listeners for an element
(bf6cb8ab)
- ngAria: add support for aria-readonly based on ngReadonly
(ec0baadc,
#14140, #14077)
- ngParseExt: new ngParseExt module
(d08f5c69)
Performance Improvements
<a name="1.5.4"></a>