Table of Contents
Create the First Angularjs Application is easier to understand when the core ideas are paired with practical examples. The sections below explain the topic clearly, highlight useful steps, and point out details that can prevent common errors.
Before starting the XinChao application with AngularJS, let's look at the actual parts of what an AngularJS application is. An AngularJS application consists of the following three important parts:
- ng-app : This Directive defines and binds an AngularJS application to an HTML page.
- ng-model : This directive binds the values of AngularJS application data to HTML input controls.
- ng-bind : This directive binds AngularJS application data to HTML tags.
Steps to create an AngularJS application
Step 1: Download the framework
As a pure JavaScript framework, the AngularJS library can be added by using tags
or with the link to the AngularJS library you downloaded in the Instructions for installing AngularJS: