本文整理匯總了TypeScript中angular2-cookie/core.CookieService.remove方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript CookieService.remove方法的具體用法?TypeScript CookieService.remove怎麽用?TypeScript CookieService.remove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類angular2-cookie/core.CookieService
的用法示例。
在下文中一共展示了CookieService.remove方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: logOut
logOut(){
this._cookieService.remove("userName");
this._cookieService.remove("password");
this._cookieService.remove("userType");
this._cookieService.remove("userCode");
this._router.navigate(['LogIn']);
this._cookieService.get
}
示例2: remove
remove(key) {
this.cache[key] = null;
delete this.cache[key];
this._cookieService.remove(key);
this._localStorage.remove(key);
}
示例3:
res => {
if (res.success) {
this._router.navigate([route])
} else {
this.message = res.message
this._cookieService.remove('token')
}
},
示例4: clearLoginToken
public clearLoginToken() {
this._cookieService.remove(this.tokenstorekey);
this._navibarService.hasToken(false);
}
示例5: logoutUser
public logoutUser() {
this._cookieService.remove('token')
window.location.href = '/login'
}
示例6: logout
private logout() {
this._cookieService.remove("email");
this._mail = "";
this._router.navigate(['Login']);
}
示例7:
this.loginService.loginWithToken(token, false).then(() => {
this.cookieService.remove('social-authentication');
this.Auth.authorize(true);
}, () => {
示例8: logout
logout(): void {
this._cookieService.remove(COOKIE_KEY);
}
示例9: logout
logout(){
this._cookieService.remove("auth");
this.router.navigate(['new']);
}
示例10: Logout
Logout() {
this._cookieService.remove('blog-admin');
let link = ['Login'];
this._router.navigate(link);
}