Update to Angular 1.1.4
This commit is contained in:
parent
72a485d6e8
commit
f5fc1369ad
585 changed files with 48055 additions and 3041 deletions
15
lib/angular/angular-cookies.js
vendored
Normal file → Executable file
15
lib/angular/angular-cookies.js
vendored
Normal file → Executable file
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @license AngularJS v1.1.2
|
||||
* @license AngularJS v1.1.4
|
||||
* (c) 2010-2012 Google, Inc. http://angularjs.org
|
||||
* License: MIT
|
||||
*/
|
||||
|
@ -25,6 +25,18 @@ angular.module('ngCookies', ['ng']).
|
|||
* this object, new cookies are created/deleted at the end of current $eval.
|
||||
*
|
||||
* @example
|
||||
<doc:example>
|
||||
<doc:source>
|
||||
<script>
|
||||
function ExampleController($cookies) {
|
||||
// Retrieving a cookie
|
||||
var favoriteCookie = $cookies.myFavorite;
|
||||
// Setting a cookie
|
||||
$cookies.myFavorite = 'oatmeal';
|
||||
}
|
||||
</script>
|
||||
</doc:source>
|
||||
</doc:example>
|
||||
*/
|
||||
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
|
||||
var cookies = {},
|
||||
|
@ -168,4 +180,5 @@ angular.module('ngCookies', ['ng']).
|
|||
|
||||
}]);
|
||||
|
||||
|
||||
})(window, window.angular);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue