AngularJS crash course

Now that we know where to find the library sources and their accompanying documentation, we can start writing code to actually see AngularJS in action. This section of the book lays the foundation for the subsequent chapters by covering AngularJS templates, modularity, and dependency injection. Those are the basic building blocks of any AngularJS web application.

Hello World – the AngularJS example

Let's have a look at the typical "Hello, World!" example written in AngularJS to get the first impression of the framework and the syntax it employs.

    <script src=""></script>
<body ng-app ng-init="name = 'World'"> <h1>Hello, {{name}}!</h1> </body> ...

Get Mastering Web Application Development with AngularJS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.