AngularJS Simple Template Example

AngularJS Simple Template Example

by Kai_Draord

HTML

<div ng-app="FunnyAnt" ng-controller="HomeController"> 
      
</div>

JavaScript

var templatesExample = angular.module('FunnyAnt', []);
templatesExample.controller('HomeController', function ($scope) {
    $scope.greeting = "Welcome to the application.";
});