Java, .NET, PHP, PYTHON, ANGULAR, .NET, ML, Data Scince, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Create Addition Program in Angular Framework:-
Angular Framework provides Typescript or additional javascript code patterns to write code.
Typescript provides Object-Oriented JavaScript to write code.

1)Create Component provide name addition
2) write code on Typescript file using this pattern under Constructor()

export class AdditionComponent implements OnInit {
  a=100
  b=200
  c=0

  constructor() {
  alert("addition is "+(this.a+this.b));
  this.c = this.a+this.b

  }
  ngOnInit() {
 // alert("ON INIT");
  }


}
3) Create HTML File and Write Code to view data


{{c}}

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post