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

    </script>
</body>
</html>
Create first module that sets a variable but is not bind to the view.
Create first module that sets a variable but is not bind to the view.
