<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>AngularJS Training</title>
</head>
<body ng-app="app" ng-controller="MyController">
    Expression: {{ var1 }}
    <script src="https://code.angularjs.org/1.2.28/angular.js"></script>
    <script>
        angular
                .module('app', [])
                .controller('MyController', function ($scope) {
                    $scope.var1 = 'test';
                });

    </script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>AngularJS Training</title>
</head>
<body ng-controller="MyController">
    Expression: {{ var1 }}
    <script src="https://code.angularjs.org/1.2.28/angular.js"></script>
    <script>
        angular
                .module('app', [])
                .controller('MyController', function ($scope) {
                    $scope.var1 = 'test';
                });
        angular.bootstrap(document.body, ['app']);
    </script>
</body>
</html>
Use bootstrap to start the Angular app.
Use bootstrap to start the Angular app.
