Please go through this link for answer-

https://www.geeksforgeeks.org/property-binding-in-angular-8/