Sha256: 6365203b1cde3bd143add4cff9cac27d6502f249504dad97de3b1216119ac117
Contents?: true
Size: 776 Bytes
Versions: 4
Compression:
Stored size: 776 Bytes
Contents
import {Component} from '@angular/core'; import {Router, Params, ActivatedRoute} from '@angular/router'; import {ConfirmAccountService} from './confirm-account.service'; import 'rxjs/add/operator/catch'; @Component({ templateUrl: './confirm-account.html', styleUrls: ['./confirm-account.scss'] }) export class ConfirmAccountComponent { confirming = true; confirmed: boolean; constructor( private confirmAccountService: ConfirmAccountService, private router: Router, private route: ActivatedRoute ) { this.route.params.forEach((params: Params) => { let token = params['token']; confirmAccountService.confirm(token).subscribe((json) => { this.confirming = false; this.confirmed = json.confirmed; }); }); } }
Version data entries
4 entries across 4 versions & 1 rubygems