website/src/app/app.component.ts

18 lines
448 B
TypeScript
Raw Normal View History

import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {ElectronService} from 'ngx-electron';
2018-06-24 21:11:31 -04:00
@Component({
selector: 'app-root',
2018-07-03 10:10:47 -04:00
templateUrl: 'app.component.html'
2018-06-24 21:11:31 -04:00
})
export class AppComponent implements OnInit {
constructor(private router: Router, public electron: ElectronService) {}
ngOnInit() {
if(this.electron.isElectronApp) {
this.router.navigate(['/formulaManager']);
}
}
}