标签:
Introduction
Angular JS is a very powerful JavaScript library or we can say open-source web application framework maintained by Google. It is used in Single Page Application (SPA) projects. It extends the HTML DOM with additional attributes (in other words directives) and binds data to HTML with expressions, hence making it more responsive to user actions.
It is licensed under the Apache version 2.0 license.
Prerequisites
One should have a basic understanding of JavaScript and any text editor (I‘ll be using Visual Studio 2015). Since we are developing web-based applications using Angular JS, knowledge of HTML, CSS and AJAX will be an advantage.
Let‘s consider the following example:
Angular JS extends HTML with ng-directives.
Complete Code
Example Explained
Angular JS starts automatically when the webpage has loaded.
Output
Note: You can use data-ng-, instead of ng-, if you want to make your page HTML 5 valid.
You‘ll get more to be familiar with Angular JS in a future article. Keep visiting
src: http://www.c-sharpcorner.com/UploadFile/cb92fb/angularjs-an-overview/
标签:
原文地址:http://www.cnblogs.com/glenblogs/p/4448903.html