I am currently working on an angular project, and I've encountered a situation where I'm attempting to send a value from a parent component to a child component using the @Input() decorator. Despite my efforts, the child component continues to display the initial value instead of the updated one sent by the parent component. Can anyone shed light on why this is happening and provide guidance on how to resolve it?
Here's a snippet of the code:
@Input('amt') amount:any =100;
Parent Component Code:
<app-payment [amount]="100*2"></app-payment>