<html ng-app="myApp"> <head> <script src="angular.js"></script> </head> <body> <script> var myApp = angular.module('myApp',[]); myApp.controller('Mc', ['$scope', function($scope) { $scope.message = 'set variable'; }]); </script> <div ng-controller="Mc"> {{ message }} </div> </body> </html>