angular-hotel-manager/src/app/app.component.ts

20 lines
439 B
TypeScript
Raw Normal View History

2024-08-13 13:11:57 +02:00
import { Component } from '@angular/core';
2024-08-20 14:26:19 +02:00
import { ParentComponent } from './Parent/parent.component';
import { ChildComponent } from './Child/child.component';
2024-08-13 13:11:57 +02:00
@Component({
selector: 'app-root',
standalone: true,
2024-08-20 14:26:19 +02:00
imports: [ParentComponent, ChildComponent],
2024-08-13 13:11:57 +02:00
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export class AppComponent {
2024-08-20 14:26:19 +02:00
public test = "Hello";
public get age() {
return 17;
}
2024-08-13 13:11:57 +02:00
}
2024-08-20 14:26:19 +02:00