Angular Controller
var MainController = function($scope) {
$scope.message = "Hello, Angular!";
};
<!doctype html>
<html ng-app>
<head>
<title>Angular Example</title>
<script src="angular.js"></script>
<script src="script.js"></script>
</head>
<body ng-controller="MainController">
<h1>{{message}}</h1>
</body>
</html>