Machine Problem

Write a program that uses ng-app directive that will multiply the  values of two numbers and display the results on the screen using AngularJS.

  I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Program Listing

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : July 25, 2021  Sunday  10:07 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head> 
<title>Multiply Two Numbers Using ng-app in AngularJS</title>
</head>
<style>
body {
   font-family: "arial";
   font-style: bold;
   font-size: 18px;
  }
 </style>
<script type="text/javascript" src="angular.min.js"></script>
<body><br>
<h3>Multiply Two Numbers Using ng-app in AngularJS</h3>
<body>
<div ng-app="myApp" ng-controller="Multiply_Controller">
The product of {{A}} and {{B}} is {{A*B}}.
</div>
<script>
var app = angular.module("myApp", []);
app.controller("Multiply_Controller", function($scope) {
    $scope.A = 5;
    $scope.B = 6;
});
</script>
</body>
</html>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *