Created
November 28, 2016 09:13
-
-
Save xjinza/7f222a5c168f6da603a97a96bb1b7de1 to your computer and use it in GitHub Desktop.
angular set cookies expired
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var expireDate = new Date(); | |
expireDate.setDate(expireDate.getDate() + 1); | |
$cookies.put('myFavorite', 'oatmeal', {'expires': expireDate}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment