2025-01-28 08:27:37 +01:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
import { ChildComponent } from '../Child/child.component';
|
2024-08-20 14:26:19 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-parent',
|
|
|
|
standalone: true,
|
|
|
|
templateUrl: './parent.component.html',
|
|
|
|
imports: [ChildComponent],
|
|
|
|
})
|
|
|
|
export class ParentComponent {
|
|
|
|
public balance = 1000;
|
|
|
|
|
|
|
|
public addFifty() {
|
|
|
|
this.balance += 50;
|
|
|
|
}
|
|
|
|
}
|