Creating a Basic AngularJS Application
Now that you understand the basic components in the AngularJS framework, the intent and design of the AngularJS framework, and how to bootstrap AngularJS, you are ready to get started implementing AngularJS code. This section walks you through a very basic AngularJS application that implements an HTML template, AngularJS module, controller, scope, and expression.
The first step is to implement a basic Node.js webserver. The code in Listing 20.1 shows a basic Node.js webserver that serves static files that serve the following routes:
/static: Maps to ./static
in the project directory and contains the HTML ...
Get Node.js, MongoDB, and AngularJS Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.