unserver-unify
Version:
15 lines • 407 B
JavaScript
;
angular.module('bamboo').controller('CookieController', function($cookies,$localStorage) {
var self = this;
this.print=function(){
console.log($localStorage.open);
}
this.clean=function(){
console.log($cookies.getAll());
var data=$cookies.getAll();
angular.forEach(data,function(val,key){
console.log(key);
$cookies.remove(key);
})
}
});