Refactored Angular components to standalone modules, enhancing modularity and reducing dependency on `AppModule`. Updated routes to facilitate lazy loading for improved performance and maintainability. Replaced `platformBrowserDynamic` with `bootstrapApplication` for modern bootstrapping.
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
import {Component} from '@angular/core';
|
|
import {ScrollService} from '../scroll/scroll.service';
|
|
import {CommonModule} from '@angular/common';
|
|
import {HeaderComponent} from '../header/header.component';
|
|
|
|
@Component({
|
|
selector: 'app-birthdays',
|
|
standalone: true,
|
|
imports: [
|
|
CommonModule,
|
|
HeaderComponent
|
|
],
|
|
templateUrl: './birthdays.component.html',
|
|
styleUrl: './birthdays.component.scss'
|
|
})
|
|
export class BirthdaysComponent {
|
|
constructor(public scrollService: ScrollService) {
|
|
}
|
|
}
|