Skip to main content

Posts

Showing posts from January, 2016

AngularJS - 02 (Intro Coding)

AngularJS is distributed as a JavaScript file,  and can be added to a web page with a script tag: < script   src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js" > < /script > < !DOCTYPE   html > < html > < script   src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js" > < /script > < body > < div   ng-app= "" >   < p > Name:  < input   type= "text"   ng-model= "name" > < /p >   < p   ng-bind= "name" > < /p > < /div > < /body > < /html > Example explained: AngularJS starts automatically when the web page has loaded. The ng-app directive tells AngularJS that the <div> element is the "owner" of an AngularJS application. The ng-model directive binds the value of the input field to the application variable name . The ng-bind directive binds the inn...

AngularJS - 01 (Intro)

AngularJS AngularJS is a very powerful JavaScript Framework. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache license version 2.0. AngularJS is created by Google, which is probably one of the bigger causes of its success. Prerequisites You should have a basic understanding of JavaScript and any text editor. As we are going to develop web-based applications using AngularJS, it will be good if you have an understanding of other web technologies such as HTML, CSS, AJAX, etc. What is AngularJS? AngularJS is an open source web application framework. It was originally developed in 2009 by Misko Hevery and Adam Abrons. It is now maintained by Google. Its latest version is 1.4.3. Definition of AngularJS as put by its official  documentation The Angula...