import { Component } from '@angular/core'; import { OnInit } from '@angular/core/src/metadata/lifecycle_hooks'; import { ConsoleService } from './console.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { title = 'Maptology'; constructor(private consoleService: ConsoleService) { } ngOnInit() { this.consoleService.log("App component initialized.") } }