Advertisement
Guest User

Untitled

a guest
Feb 15th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from '@angular/core';
  2. import { Router } from '@angular/router';
  3. const remote = require('electron').remote;
  4.  
  5. @Component({
  6.   selector: 'app-header',
  7.   templateUrl: './header.component.html',
  8.   styleUrls: ['./header.component.scss']
  9. })
  10. export class HeaderComponent implements OnInit {
  11.  
  12.   constructor(public router: Router) { }
  13.  
  14.   ngOnInit(): void {
  15.  
  16.   }
  17.   testClose() {
  18.  
  19.     const win = remote.getCurrentWindow();
  20.     win.close();
  21.  
  22.   }
  23.  
  24. }
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement