generated from nhcarrigan/template
21 lines
659 B
TypeScript
21 lines
659 B
TypeScript
import { Component, inject, OnInit } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import { HeaderComponent } from './components/header/header.component';
|
|
import { FooterComponent } from './components/footer/footer.component';
|
|
import { AnalyticsService } from './services/analytics.service';
|
|
|
|
@Component({
|
|
imports: [RouterModule, HeaderComponent, FooterComponent],
|
|
selector: 'app-root',
|
|
templateUrl: './app.html',
|
|
styleUrl: './app.scss',
|
|
})
|
|
export class App implements OnInit {
|
|
protected title = 'Naomi\'s Library';
|
|
private analytics = inject(AnalyticsService);
|
|
|
|
ngOnInit(): void {
|
|
this.analytics.initialise();
|
|
}
|
|
}
|