Newer
Older
HoteleriaAdmin / src / app / authentication / login / login.component.ts
James Cuadrado on 26 May 2021 691 bytes init
import { Component, OnInit, AfterViewInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.css']
})
export class LoginComponent implements OnInit, AfterViewInit {
  constructor(public router: Router) {}

  ngOnInit() {}

  ngAfterViewInit() {
    /*$(function() {
            $(".preloader").fadeOut();
        });
        $('#to-recover').on("click", function() {
            $("#loginform").slideUp();
            $("#recoverform").fadeIn();
        });*/
  }

  onLoggedin() {
    localStorage.setItem('isLoggedin', 'true');
  }
}