Professional Documents
Culture Documents
Controller Example
Controller Example
<head>
<title>Form angular js</title>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.2/angular.min.js"></script
>
</head>
<body ng-app="myapp">
<div ng-controller="myController">
<h2>{{message}}
</h2>
</div>
<script>
var app = angular.module('myapp', []);
app.controller("myController",function ($scope,$location)
{
$scope.message = "hello welcome to my controller";
});
</script>
</body>
</html>