JS 

AngularJS

AngularJS

Introduction

AngularJS is a robust JavaScript Framework. AngularJS version 1.0 was released in 2012 by Misko Hevery, a Google employee.

Angular is a client-side MVW (Model-View-Whatever) JavaScript framework which gives us flexibility over design patterns when developing applications.

Features

  • AngularJS is a robust JavaScript based framework to create Rich Internet Application (RIA) and to build large scale based projects while keeping them as easy-to-maintain.
  • AngularJS provides developers options to write script in the MVC(Model View Controller) way.
  • AngularJS is a cross-browser compatible Scripting Language.
  • AngularJS is open source and completely free, licensed under the Apache License version 2.0.

Major Modules in AngularJS

Scope

Angular has a concept of scope which sits as one of the main Objects that powers the two way data-binding cycles to maintain application state.

Example of how we declare some data inside the Controller.

$scope.someValue = ‘Hello’;

To render it out in the DOM, we need to connect a Controller to some HTML and tell Angular where to bind the value.

<div ng-controller=”AppCtrl”>

{{ someValue }}

</div>

 

Controller

Controller allows us to interact with a View and Model, it’s the place where presentational logic can take place to keep the UI bindings in sync with the Model.

function MainCtrl ()

{

}

.module(‘app’, [])

.controller(‘MainCtrl’, MainCtrl);

Enjoy the tutorial? Please spread the word :)

Follow by Email
Facebook
Facebook
Google+2k
Google+
http://hirdeshbhardwaj.com/2017/07/21/angularjs-2/
YouTube31
YouTube