In this tutorials will teach How to add two numbers in Angular. First you have to add the FormsModule inside the imports. Create the new Components addnumbers addnum.components.html [crayon-6471cf750cd4b385163748/] addnum.components.ts num1:string = ”; num2:string = ”; result:number=0; Total() { this.result = parseInt(this.num1) + parseInt(this.num2); } Full code on the addnum.components.ts [crayon-6471cf750cd52667053547/] i have attached the video link below. which …
Angular How to Add Two Number


