angular ng-app

by Richard Hunter

HTML

<div ng-app ng-controller="foo">
    
    {{  bar }}
    
</div>

JavaScript

function foo($scope) {
    $scope.bar = "this is bar";
}