Angular-Template/src/app/app.component.ts
2025-01-03 09:14:18 +03:00

31 lines
718 B
TypeScript

import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { of } from "rxjs";
@Component({
selector: 'il-root',
standalone: true,
imports: [CommonModule, RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.sass',
})
/**
* @description Основной компонент, в котором рендерится все приложение
*/
export class AppComponent
{
main_title = 'imlegend-client';
/**
* @description Возвращает main_title
* @return {string}
*/
GetMainTitle(): string
{
of(null).subscribe(console.log);
return this.main_title;
}
}