inicio.component.ts 683 Bytes
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { PopoverDirective } from 'ngx-bootstrap';
import { appSettings } from 'src/etc/AppSettings';


@Component({
  selector: 'app-inicio',
  templateUrl: './inicio.component.html',
  styleUrls: ['./inicio.component.scss']
})
export class InicioComponent implements OnInit {

  @ViewChild('pop', { static: false }) popoverDirective: PopoverDirective;
  apiUrl : string = appSettings.apiUrl

  constructor(private router: Router) { }

  ngOnInit() {
  }

  open() {

    this.popoverDirective.show();
  }

  private goPage(pageUrl) {
    this.router.navigate([pageUrl]);
  }

}