Categories
5G Network
Agile
Amazon EC2
Android
Angular
Ansible
Arduino
Artificial Intelligence
Augmented Reality
AWS
Azure
Big Data
Blockchain
BootStrap
Cache Teachniques
Cassandra
Commercial Insurance
C#
C++
Cloud
CD
CI
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
DevOps
ECMAScript
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Gradle
Hadoop
HBase
HDFS
Hibernate
Hive
HTML
Image Processing
IOT
JavaScript
Java
Jenkins
Jira
JUnit
Kibana
Linux
Machine Learning
MangoDB
MVC
NGINX
Onsen UI
Oracle
PHP
Python
QTP
R Language
Regression Analysis
React JS
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
SOAP UI
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
Vue.js
Home
Recent Q&A
Feedback
Ask a Question
In Angular, describe how will you set, get and clear cookies?
Home
>
Angular
>
In Angular, describe how will you set, get and clear cookies?
Jan 15, 2020
in
Angular
Q: In Angular, describe how will you set, get and clear cookies?
#angular-cookies
1
Answer
0
votes
Jan 15, 2020
For using cookies in Angular, you need to include a module called ngCookies angular-cookies.js.
To set Cookies – For setting the cookies in a key-value format ‘put’ method is used.
cookie.set('nameOfCookie',"cookieValue");
To get Cookies – For retrieving the cookies ‘get’ method is used.
cookie.get(‘nameOfCookie’);
To clear Cookies – For removing cookies ‘remove’ method is used.
cookie.delete(‘nameOfCookie’);
Click here to read more about Angular JS
Click here to read more about Insurance
Facebook
Twitter
LinkedIn
Related questions
0
votes
Q: How do you set, clear, and toggle a single bit?
Jan 6
in
C Plus Plus
c
plus
0
votes
Q: Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using . . . . . . . . to detect changes.
Feb 15, 2020
in
Angular
+1
vote
Q: How can you differentiate between Angular expressions and JavaScript expressions?
Jan 15, 2020
in
Angular
#angular-expressions-javascript
0
votes
Q: Your organization has four instances for production and another four for testing. You are asked to set up a group of IAM users that can only access the four production instances and not the other four testing instances. How will you achieve this?
Dec 4, 2020
in
Amazon Elastic Compute Cloud(EC2)
#iam-users
#production-instances
+1
vote
Q: How do you get the result set from two tables in glide script in Servicenow?
Sep 8, 2020
in
Service Now
#servicewnow
0
votes
Q: The router in Angular 2.0 has been reworked to be simple, yet extensible. It will include the following basic features:
Feb 15, 2020
in
Angular
...