subscription-price.component.ts
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { Component, AfterViewInit, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ApplicationService } from '../services/application.service';
declare var jQuery: any;
@Component({
templateUrl: './app/components/subscription-price.component.html'
})
export class SubscriptionPriceComponent implements AfterViewInit, OnInit {
constructor(private application: ApplicationService, private router: Router) {
}
ngAfterViewInit(): void {
this.initializeUIElements();
//jQuery(function () {
// jQuery("#slider-range-min-2").slider({
// range: "min",
// min: 1,
// max: 60,
// value: 10,
// slide: function (event, ui) {
// jQuery("#amount-2").val(ui.value);
// }
// });
// jQuery("#amount-2").val($("#slider-vertical-2").slider("value"));
//});
//jQuery('#myTab a').click(function (e) {
// e.preventDefault()
// jQuery(this).tab('show')
//})
}
initializeUIElements(): void {
}
ngOnInit(): void {
/*if (this.application.currentUser == null) {
this.router.navigate(['/login']);
}*/
}
showAlert(id: string): void {
jQuery('#' + id).modal('show');
}
}