angular-cookies
Advanced tools
Comparing version 1.2.16 to 1.2.17
{ | ||
"name": "angular-cookies", | ||
"version": "1.2.16", | ||
"version": "1.2.17", | ||
"description": "AngularJS Cookie Module", | ||
@@ -5,0 +5,0 @@ "main": "src/angular-cookies.js", |
/** | ||
* @license AngularJS v1.2.16 | ||
* @license AngularJS v1.2.17 | ||
* (c) 2010-2014 Google, Inc. http://angularjs.org | ||
@@ -40,14 +40,11 @@ * License: MIT | ||
* @example | ||
<example> | ||
<file name="index.html"> | ||
<script> | ||
function ExampleController($cookies) { | ||
// Retrieving a cookie | ||
var favoriteCookie = $cookies.myFavorite; | ||
// Setting a cookie | ||
$cookies.myFavorite = 'oatmeal'; | ||
} | ||
</script> | ||
</file> | ||
</example> | ||
* | ||
* ```js | ||
* function ExampleController($cookies) { | ||
* // Retrieving a cookie | ||
* var favoriteCookie = $cookies.myFavorite; | ||
* // Setting a cookie | ||
* $cookies.myFavorite = 'oatmeal'; | ||
* } | ||
* ``` | ||
*/ | ||
@@ -147,2 +144,13 @@ factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) { | ||
* @example | ||
* | ||
* ```js | ||
* function ExampleController($cookies) { | ||
* // Put cookie | ||
* $cookieStore.put('myFavorite','oatmeal'); | ||
* // Get cookie | ||
* var favoriteCookie = $cookieStore.get('myFavorite'); | ||
* // Removing a cookie | ||
* $cookieStore.remove('myFavorite'); | ||
* } | ||
* ``` | ||
*/ | ||
@@ -149,0 +157,0 @@ factory('$cookieStore', ['$cookies', function($cookies) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6205
182