Yes we can use the cookies in angular also angular cookies is much similiar as Angular 1.x but in angular 2,4 and 6 there is one extraa method is DeleteAll.
Angular uses the following method for cookie
Emp id
|
FirstName
|
Last Name
|
Emp code
|
Position
|
location
|
1
|
Neeraj
|
Upadhyay
|
GCS-1795
|
Software Developer
|
Noida
|
2
|
Akhilesh
|
Upadhyay
|
GCS-1796
|
Software Developer
|
Delhi
|
3
|
Ashish
|
Bhisht
|
GCS-1797
|
Software Developer
|
Sawai madhopur
|
1002
|
Akash
|
Srivastava
|
GCS-1798
|
Software Developer
|
Kota
|
1003
|
Dikhsa
|
Rawat
|
GCS-1799
|
Software Developer
|
Naguar
|
1004
|
Vaishali
|
Gupta
|
GCS-1800
|
Software Developer
|
Aligarh
|
Emp_id
|
Address
|
Salary
|
1
|
behind old laxman mandir bharatpur rajasthan
|
50000
|
2
|
WZ-85 Todapur New delhi
|
50000
|
3
|
kerapati mohalla bharatpur
|
40000
|
1002
|
A-154/A sector 63 noida
|
55000
|
1003
|
india habitat center lodhi road new delhi
|
35000
|
alert('x = ' + x); // display x = undefined
var x = 1;
Problem: When trying to run an Angular project using the "ng serve" command, you encounter an error that says "ng: The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Solution: To resolve this error, open the command prompt and type "npm -i -g @angular/cli" to install the Angular CLI globally. Once the installation is complete, navigate to the project directory and run the project using "ng serve" command. This should allow you to run your Angular project without encountering the "ng is not recognized" error.
The Ultimate Guide to Interceptors: Understanding Their Power and Functionality An interceptor is a service that can intercept HTTP reques...