当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript CookieService.remove方法代码示例

本文整理汇总了TypeScript中ngx-cookie.CookieService.remove方法的典型用法代码示例。如果您正苦于以下问题:TypeScript CookieService.remove方法的具体用法?TypeScript CookieService.remove怎么用?TypeScript CookieService.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ngx-cookie.CookieService的用法示例。


在下文中一共展示了CookieService.remove方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: ngOnInit

  ngOnInit() {
    // Clean cookies
    this.cookieService.remove('COACH_REGISTER_CONDITIONS_ACCEPTED');
    this.cookieService.remove('COACH_REGISTER_FORM_SENT');

    this.contactForm = this.formBuilder.group({
      name: ['', Validators.compose([Validators.required])],
      mail: ['', Validators.compose([Validators.required])],
      message: ['', [Validators.required]],
    });
  }
开发者ID:guillaumeLeRoy,项目名称:eritis_fe,代码行数:11,代码来源:welcome.component.ts

示例2:

this.loginService.loginWithToken(token, false).then(() => {
        this.cookieService.remove('social-authentication');
        this.router.navigate(['']);
     }, () => {
开发者ID:bbranquinho,项目名称:chafraterno,代码行数:4,代码来源:social-auth.component.ts

示例3: invalidateSession

 invalidateSession (error) {
   console.log(error)
   this.cookieService.remove('token', { domain: document.domain })
   localStorage.removeItem('token')
   sessionStorage.removeItem('bid')
 }
开发者ID:bkimminich,项目名称:juice-shop,代码行数:6,代码来源:oauth.component.ts

示例4: goToWelcomePage

 goToWelcomePage() {
   // Clean cookies
   this.cookieService.remove('COACH_REGISTER_CONDITIONS_ACCEPTED');
   this.cookieService.remove('COACH_REGISTER_FORM_SENT');
   this.router.navigate(['/welcome']);
 }
开发者ID:guillaumeLeRoy,项目名称:eritis_fe,代码行数:6,代码来源:register-coach-message.component.ts

示例5: deleteAcceptedConditions

 deleteAcceptedConditions() {
   console.log('Coach register refuse conditions');
   this.cookieService.remove('COACH_REGISTER_CONDITIONS_ACCEPTED');
 }
开发者ID:guillaumeLeRoy,项目名称:eritis_fe,代码行数:4,代码来源:register-coach.component.ts


注:本文中的ngx-cookie.CookieService.remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。