Home Angular How to do the student mark calculation in Angular

How to do the student mark calculation in Angular

5 min read
0
0
214

In this tutorials will teach How to do the student mark calculation in Angular.

First you have to add the FormsModule inside the imports.

Create the new Components studentmarks

studentmarks.component.html

studentmarks.component.ts
  marks1:string = ”;
  marks2:string = ”;
  marks3:string = ”;
  result:number=0;
  avg:number=0.0;
StudentTot()
{
  this.result = parseInt(this.marks1) + parseInt(this.marks2) + parseInt(this.marks3);
  this.avg = (this.result) / 3 ;
}

i have attached the video link below. which will do this tutorials step by step

 

Load More Related Articles
Load More By admin
Load More In Angular

Leave a Reply

Your email address will not be published.

Check Also

Node js React Mongodb Search Functionality

In this articles will teach how to search records Node js React Express Mongodb.how the se…