Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119876065
branch3.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
Mon, Jun 30, 03:14
Size
937 B
Mime Type
text/x-java
Expires
Wed, Jul 2, 03:14 (2 d)
Engine
blob
Format
Raw Data
Handle
27094222
Attached To
R8244 Eawag_Swing_Weight_Elicitation
branch3.component.ts
View Options
import { Component, OnInit } from '@angular/core';
import 'jquery-ui/ui/widgets/sortable';
import * as $ from 'jquery';
import { Router } from '@angular/router';
import { Hl } from '../hl';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'app-branch3',
templateUrl: './branch3.component.html',
styleUrls: ['./branch3.component.css']
})
export class Branch3Component implements OnInit {
constructor(private router: Router, public hl: Hl, private title: Title) { }
nextrate(){
var itemOrder = $('#sortable').sortable("toArray");
// console.log(itemOrder);
// Save data to sessionStorage
sessionStorage.setItem('branch3', JSON.stringify(itemOrder));
// Get saved data from sessionStorage
//var data = sessionStorage.getItem('key');
this.router.navigateByUrl('/survey-v1/branch3/rate');
}
ngOnInit() {
this.title.setTitle('Survey v1');
$('#sortable').sortable();
}
}
Event Timeline
Log In to Comment