I recently created some angular modules and controllers, but I'm puzzled as to why the output doesn't display the expressions even though I included "ng-app" and "ng-controller" in my code. script.js
/// <reference path="angular.min.js" />
var myApp = angular.module("myModule", []);
myApp.controller = ("myController", function ($scope) {
$scope.message = "Angular message";
});
index.html
<!DOCTYPE html>
<html ng-app="myModule">
<head>
<script src="Scripts/angular.min.js"></script>
<script src="Scripts/script.js"></script>
</head>
<body >
<div ng-controller="myController">
{{ message }}
</div>
<div >
10 +20 = {{ 10+20 }}
</div>
</body>
</html>
OUTPUT:-
{{ message }}
10 +20 = {{ 10+20 }}