22 lines
411 B
TypeScript
22 lines
411 B
TypeScript
import { Component } from '@angular/core';
|
|
import { ElectronService } from 'ngx-electron';
|
|
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.css']
|
|
})
|
|
export class AppComponent {
|
|
title = 'app';
|
|
|
|
constructor(private _electronService: ElectronService) {
|
|
|
|
}
|
|
|
|
launchWindow(){
|
|
this._electronService.shell.openExternal('http://google.com');
|
|
|
|
}
|
|
}
|