AngularJS Simple calculator web Application

AngularJS Simple calculator web Application

In this Post We Will Explain About is AngularJS Simple calculator web Application With Example and Demo.Welcome on – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to example of calculator in angular Example

In this post we will show you Best way to implement develop a calculator using angularjs, hear for AngularJS calculator webapplication example with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.


In this Example,First of all Add or Inluce External Libs Like as a(jQuery, css etc..), and then create a simple index.php or index.html page.After that crate a simple javascript file like as a index.js or main.js, It is also add your web-application First Header Part to some priorty set.After that Include your relavant CSS Class.

Read Also:  Download Sample woocommerce products Data in CSV

Simple Calculator using AngularJS

AngularJs is a simple powerful javascript based framework to make powerful and custom dynamic web well as the help of all the HTML AngularJs we can DOM extend the all the data capabilities of DOM HTML and use some best functions like as a angular Data-binding, smart based MVC architecture and lots of the thnigs much more.

Read Also:  how to display image in popup window using javascript or jQuery?

Include External Libs

<script src= "angular.min.js"></script>
<script src= "calculator.js"></script>


<div ng-app="liveCalcApp" ng-controller="myliveCalcCtrl">
  <p><input type="number" ng-model="finput"></p>
  <p><input type="number" ng-model="sinput"></p>
  <p><select ng-model="mathopt">
  <p>{{ total_results() }}</p>


angular.module('liveCalcApp', [])
    .controller('myliveCalcCtrl', function($scope) {
        $scope.total_results = function() {
            if ($scope.mathopt == '+') {
                return $scope.finput + $scope.sinput;
            if ($scope.mathopt == '-') {
                return $scope.finput - $scope.sinput;
            if ($scope.mathopt == '*') {
                return $scope.finput * $scope.sinput;
            if ($scope.mathopt == '/') {
                return $scope.finput / $scope.sinput;


You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example

example of calculator in angular

angular material calculator

I hope you have Got What is angularjs calculator directive And how it works.I would Like to have FeedBack From My Blog( readers.Your Valuable FeedBack,Any Question,or any Comments about This Article( Are Most Always Welcome.