Monthly Archives: February 2016

Angular.js Hello World program

Usually when writing a small utility I use the command line. But sometimes a simple web page with JavaScript gives a more functional UI.

I like AngularJS, but I don’t start from scratch very often, and when I do, I need to start searching for code to copy. So, here is my Angular Hello World template.

<!DOCTYPE html>
<html ng-app="theApplication" ng-controller="theController">
    <meta charset="utf-8">
    <title>Hello World</title>

  <script src="angular.js"></script>
    angular.module('theApplication', []).
    controller('theController', ['$scope',function($scope) {
      $ = 'Zo0ok';

    Hello {{ name }}

Obviously, if you don’t host angular.js yourself you need to use something like

<script src="">