settings.page.ts 650 Bytes
Newer Older
Priyanka Upadhye's avatar
Priyanka Upadhye committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Component, OnInit } from '@angular/core';
import { Router, LoadChildrenCallback } from '@angular/router';
import { ToastService } from '../services/toast.service';
@Component({
  selector: 'app-settings',
  templateUrl: './settings.page.html',
  styleUrls: ['./settings.page.scss'],
})
export class SettingsPage implements OnInit {

  constructor(private router: Router,private toastService: ToastService) { }

  ngOnInit() {
  }
  ChangePassword() {
    this.router.navigateByUrl('/reset-password');
  }
  DeactivateUser(){
    this.toastService.showToast("Account Deactivated Sucessfully");
    this.router.navigateByUrl('/logout');
  }
}