mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-12-06 10:09:29 +00:00
MikroWizard Initial commit | MikroFront Welcome to the world :)
This commit is contained in:
commit
b97aec6b97
203 changed files with 41097 additions and 0 deletions
33
src/app/app.component.ts
Normal file
33
src/app/app.component.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router, NavigationEnd } from '@angular/router';
|
||||
|
||||
import { IconSetService } from '@coreui/icons-angular';
|
||||
import { iconSubset } from './icons/icon-subset';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
template: '<router-outlet></router-outlet>',
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
title = 'MikroWizard , Mikrotik router managent system';
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
private titleService: Title,
|
||||
private iconSetService: IconSetService
|
||||
) {
|
||||
titleService.setTitle(this.title);
|
||||
// iconSet singleton
|
||||
iconSetService.icons = { ...iconSubset };
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log(this.router.url);
|
||||
this.router.events.subscribe((evt) => {
|
||||
if (!(evt instanceof NavigationEnd)) {
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue