Introduction to AngularJS with Examples

Here we will learn what is angularjs, why we need angularjs and how to use angularjs in application.

What is AngularJs?

AngularJs is a MVVM framework and that help us to create Single Page Applications (SPA) and dynamic web apps. AngularJS will be maintained and developed by Google Inc.  


AngularJs is supported to MVVM and stands for Model-View-Whatever. It's also known as MV*. The (*) means "whatever you want to do...”.

AngularJS Advantages

If we use angularjs in our applications we have following advantages.

                   1. Less Coding

                   2. More Extensive UI

                   3. Developed by Google Inc

AngularJS Features

Following are the features of angularjs.


                 1. Two-way data binding

                 2. MVC pattern

                 3. Template and Custom directive

                 4. Server Communication and REST friendly

                 5. dynamic page Linking

                 6. Validations

                 7. Dependency injection


The angular use prefix “ng" for data binding and it handle all the DOM and AJAX requests easily.

Why we need to use AngularJs?

AngularJs is a framework not a library like jQuery etc. and it's not depend on jQuery. The angular use jqLite.


The key reasons to use AngularJs as given below.


            1. Supported to two way data binding

            2. Write Less code

            3. Scope inheritable

            4. DOM manipulations

            5. Partial Views

            6. Easy to used Routes

            7. Extensible declarative UI

            8. Create custom directives very easy

            9. Filters Flexibility

            10. Supported to REST communication

How to use AngularJs?

Before You Start AngularJs, follow the easy steps. The steps as given bellows.


1. Need to installed plug-ins


Manually we can download AngularJs framework from angularjs site or we can include following cdn in header section of our application to use angularjs


<script src=""></script>

2. Need to Understand basic overviews


             a. ngApp


             b. ngController


             c. ngModule etc.


3. Getting start with an AngularJs Applications

Topics Covered