| import { Component, Input } from '@angular/core'; | |
| import { CommonModule } from '@angular/common'; | |
| import { RouterModule } from '@angular/router'; | |
| import { BrandService } from '../brand.service'; | |
| ({ | |
| selector: 'app-header', | |
| standalone: true, | |
| imports: [CommonModule, RouterModule], | |
| templateUrl: './header.component.html', | |
| styleUrls: ['./header.component.css'] | |
| }) | |
| export class HeaderComponent { | |
| () title: string | null = null; | |
| () showHome: boolean = true; | |
| () logoSrc?: string; // optional override | |
| () productName?: string; // optional override | |
| constructor(public brand: BrandService) {} | |
| } | |