Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119828479
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
Sun, Jun 29, 15:34
Size
825 B
Mime Type
text/x-java
Expires
Tue, Jul 1, 15:34 (2 d)
Engine
blob
Format
Raw Data
Handle
27060404
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-v1/introduction');
}
ngOnInit() {
}
}
Event Timeline
Log In to Comment