Questions tagged [angular-cookies]
118 questions
0
votes
1 answer
Custom directive not picking up model initialization
I have written a custom AngularJS directive that implements a toggle checkbox based on Bootstrap Toggle. I added support for angular-translate, but that is beyond my actual proplem. Furthermore, I wanted to use angular-cookies to save and restore…

user1438038
- 5,821
- 6
- 60
- 94
0
votes
2 answers
Disable the button even after page refresh or logout from the application
I have the below code and when i refresh the application the button is enabled state. I want the button to be in disabled state even after page refresh or logout from the application. Basically i need to save the state of the button. How can i do…

GrailsLearner
- 485
- 1
- 11
- 23
0
votes
0 answers
ngx_cookie_1 is not defined
sorry for probably wrong form, but this is my first post. I couldn't find solution for my error:
Uncaught ReferenceError: ngx_cookie_service_1 is not defined
at eval (super.service.ts:39)
at eval (super.service.ts:287)
at…

machior
- 1
0
votes
0 answers
Cookies are not being accessible in Angular JS
I am working on login application.
For that, I am calling a backend service which is a post call. It returns a cookie. Inside cookie, there is a token. I need that token.
I am trying to get that token, but it is coming null when I try to access in…

Anubha Gupta
- 189
- 2
- 17
0
votes
1 answer
how can i check my token on very request
Here im using angularjs with webApi when i login with my credentials its generating Token as
data:
access_token:"SKvWJ2-IK_Zohn6xLS6HXydoV1NdovM5wvtcTvJM0hkZ"
expires_in:86399
token_type:"bearer"
This Token is stored in
…

Md Ghousemohi
- 197
- 2
- 13
0
votes
0 answers
How create checkbox remember-me
How can I develop a function for checkbox remember-me in login of my website, and I add a function in back-end ? or just in…

afif
- 31
- 1
- 6
0
votes
1 answer
Best Way to Store Laravel Passport Token in Client Side Angular2 / Angular4
I am Developing a user module with Laravel 5 as backend with passport and Angular 4 is front end client.
In this Module After authenticating the user in server side passport issues a access_token , and refresh_token and i am storing both Tokens in…

Chinna M
- 415
- 2
- 4
- 17
0
votes
0 answers
How to clear cookies before login off AngularJS
I am using AngularJS v1.5.8
My AngularJS application has a logout button, when I click on the button does not log me out, instead, it brings me back to the home page.
If I inspect the home page and go to to... Application tab --> Storage -->…

Eduardo Serrano
- 31
- 1
- 9
0
votes
1 answer
Page goes blank after loading URL with $routeProvider in AngularJS
I'm having trouble from keeping one of my pages from going blank after refreshing my browser.
When a user visits /user/:username, profile.html loads. It works as intended on the first load, but if I refresh the page, I'm left with a raw JSON output…

Farid
- 1,557
- 2
- 21
- 35
0
votes
2 answers
Set 'session' as cookie expiry instead of number [ng2-cookies]
I am using ng2-cookies, and it is clear from here that expiry is expected to be a number.
I want to set expiry as browser-session session like it appears in dev-tools.
Any help?

anusreemn
- 1,047
- 1
- 10
- 24
0
votes
0 answers
Internet Explorer with Angular Cookies
I need some help finding out why my code is running on Chrome and isn't on IE 11.
Here is my problem :
Using AngularJS and ngCookies I can set and get my cookies when I use Chrome.
When I use IE 11, the code is not working the same. For example :…

Sonny Jayet
- 434
- 2
- 7
- 24
0
votes
2 answers
angularjs: can't install angular-cookies to my project
I my project I came into an issue about the package of angular-cookies.
I have download the package and place it in my project. And as usually, in index.html, I add a script tag: