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="">


Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.