Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122926638
token.component.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 23, 00:05
Size
825 B
Mime Type
text/x-java
Expires
Fri, Jul 25, 00:05 (2 d)
Engine
blob
Format
Raw Data
Handle
27591996
Attached To
R8244 Eawag_Swing_Weight_Elicitation
token.component.ts
View Options
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { TokenService } from '../token.service';
@Component({
selector: 'app-token',
templateUrl: './token.component.html',
styleUrls: ['./token.component.css']
})
export class TokenComponent implements OnInit {
constructor( private tokenService: TokenService, private router: Router) { }
next(tokenuser){
var tok = String(tokenuser.value);
// console.log(itemOrder);
// Save data to sessionStorage
sessionStorage.setItem('Token', JSON.stringify(tok));
//this.router.navigateByUrl('/survey-v1/introduction');
this.tokenService.login().subscribe(() => {
}, (err) => {
console.error(err);
});
this.router.navigateByUrl('/survey-v2/introduction');
}
ngOnInit() {
}
}
Event Timeline
Log In to Comment