AngularJS Cookies Set Get and Remove Cookies
In this Post We Will Explain About is AngularJS Cookies Set Get and Remove Cookies Example With Example and Demo.Welcome on infinityknow.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Set-Unset Cookie using AngularJSExample
In this post we will show you Best way to implement A Simple example of Get, Set and Clear Cookie in AngularJS, hear for AngularJS Cookies Read Write and Remove Cookies examplewith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.
AngularJS set, get, read, print and delete cookie Using $cookieStore
[php]
http://code.angularjs.org/1.0.0rc10/angular-1.0.0rc10.js
http://code.angularjs.org/1.0.0rc10/angular-cookies-1.0.0rc10.js
angular.module(‘liveApp’, [‘ngCookies’]);
function livecookCtrl($scope, $cookieStore) {
$scope.liveCookieSet = function(){
$cookieStore.put(‘name’, ‘live24u-classic’);
alert(‘infinityknow.com :- cookie was set’);
};
$scope.liveCookieRead = function(){
alert($cookieStore.get(‘name’));
};
$scope.liveCookieRemove = function(){
$cookieStore.remove(‘name’);
alert(‘infinityknow.com :- cookie was removed’);
};
}
[/php]
AngularJS Cookies Read Write and Remove Cookies Using $cookies
[php]
http://code.angularjs.org/1.0.0rc10/angular-1.0.0rc10.js
http://code.angularjs.org/1.0.0rc10/angular-cookies-1.0.0rc10.js
angular.module(‘liveApp’, [‘ngCookies’]);
function livecookCtrl($scope, $cookieStore) {
$scope.liveCookieSet = function(){
$cookieStore.put(‘name’, ‘live24u-classic’);
alert(‘infinityknow.com :- cookie was set’);
};
$scope.liveCookieRead = function(){
alert($cookieStore.get(‘name’));
};
$scope.liveCookieRemove = function(){
$cookieStore.remove(‘name’);
alert(‘infinityknow.com :- cookie was removed’);
};
}
[/php]
I hope you have Got What is How to set, get, read, print and delete cookie with Angularjs And how it works.I would Like to have FeadBack From My Blog(infinityknow.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(infinityknow.com) Are Most Always Welcome.