<body ng-app="SampleMVCApp"> <div ng-controller="SampleController"> <h2>{{data.text}}</h2> </div> </body>
angular.module("SampleMVCApp", []) .controller("SampleController", function($scope) { $scope.data = {}; $scope.data.text = "Hello, AngularJS!"; });