Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8a433f3

Browse files
robinwassenpkozlowski-opensource
authored andcommitted
docs($cookie): clarify return value if no cookie exist
Closes #10794
1 parent 1476810 commit 8a433f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ngCookies/cookies.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ angular.module('ngCookies', ['ng']).
160160
* Returns the value of given cookie key
161161
*
162162
* @param {string} key Id to use for lookup.
163-
* @returns {Object} Deserialized cookie value.
163+
* @returns {Object} Deserialized cookie value, undefined if the cookie does not exist.
164164
*/
165165
get: function(key) {
166166
var value = $cookies[key];

0 commit comments

Comments
 (0)