Hello 

I'm getting angular is not defined error when run the project in web storm.

index.ejs

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html";>


    <script 
src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js";></script>
    <link rel="stylesheet" 
href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css";>
    <script 
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.9/angular.js";></script>
    <script> src="../public/javascritps/Controller.js"</script>
    <link rel="stylesheet" 
href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <script 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js";></script>




<body ng-app="CalculatorApp">
<div id="main" ng-controller="mainController">
<form id="contact-form" ng-Submit="post()">

    <p>hello {{result1}}</p>
  <p>Input the two numbers in the input boxes:</p>
  <p>First Number: <input type="text" ng-model="number1" name="number1">
    Second Number: <input type="text" ng-model="number2" name="number2">
    Result: <input type="text" ng-model="result" name="result" >  </p>


  <p><button type="submit" name ="Subject" value="Plus">+</button>
    <button type="submit" name="Subject" value="Sub">-</button>
    <button type="submit" name="Subject" value="Multiply">*</button>
    <button type="submit" name="Subject" value="Divide">/</button></p>
  <p ng-bind="number1"></p>
  <p ng-bind="number2"></p>
</form>
</div>


</body>
</html>


Controller.js




var app = angular.module('CalculatorApp', []);
app.controller('mainController', function ($scope) {

$scope.posts = [];
    $scope.newPost = {number1: '',number2:''};

    $scope.post = function()
    {
$scope.newPost = {number1:'',number2:''};
    };

});

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to