What is AngularJS and Why we use it

Let’s see about AngularJS 🙂

Note :

— AngularJS Latest Version is 1.4

— AngularJS Stable Version is 1.3

— Angular.js is a MV* (Model – View – Whatever) Javascript framework which is maintained by Google.

— The creation of Single Page Applications (SPAs) or Adding some “magic trick” to our web applications.

— AngularJS extends HTML with new attributes.

–AngularJS is an open source web application framework

You can find more about AngularJS

Main Reason ( Why we use AngualrJS ):-

— Angular is made and maintained by Google engineers.

— AngularJS is quickly becoming the dominant JavaScript framework for professional web development.

— If you’re looking for a robust, well-maintained framework ( Javscript ) for any sized project, I strongly recommend that you take a look at AngularJS.

— It can be downloaded for free at AngularJS.org, Good luck!

— Angular creates a good “WOW-Effect and LOL Functions ( Directives ,Services ,Filters )”, when you see it for the first time:

— Common Features :-

## Two way data binding and One way data binding

## Scope – Scope act as a bond between controller and view

## Services

## Filters

## Directives

## Templates

## Routing

## MVW pattern (MVC-ish)

## Template

## Custom-directive (reusable components, custom markup)

## REST-friendly

## Deep Linking (set up a link for any dynamic page)

## Form Validation

## Server Communication

## Localization

## Dependency injection

## Full testing environment (both unit, e2e)

What does Angular mean?

Hevery: it was made up by my friend who I started work with. His name is Adam Abrons, and he basically thought that HTML has Angular brackets and “ng” sounds like “Angular”.

Official Site :- developer guide

Or You can find awesome video tutorials

Or You can find Collection of best 60+ Angularjs tutorials.

Or You can Connect with FAQ

Best Tutorials To Learn AngularJS :-

Let share if you have more details ?

Your comments are always welcome .

AngularJS IE browser logout issue fixed for Multiple Tabs

1 .  //  Add this below  function to identify IE .

/* For IE logout issue */
function getUserAgentName(){
if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0) {
  return 'MSIE';
}
}

/* For IE logout issue */
// Into init function ( Starting of Your Application function )

if( (getUserAgentName() == "MSIE") && ($cookies['logout_IE'] != undefined) ) {
  delete $cookies[COOKIE_NAME]; // Which is USER ID or Token based on Your App .
}

2 . // Into logout function

/* For IE logout issue */
if(getUserAgentName() == "MSIE"){
  delete $cookies[COOKIE_NAME];
  $cookies['logout_IE'] = "MSIE";
}

3 . // Into login function

/* For IE Logout issue */
if( $cookies['logout_IE'] != undefined ) {
  delete $cookies['logout_IE'];
}

Thanks .

Your comments are always WELCOME ..

The Comparison Between $ apply , $ interval and setInterval

The Comparison Between $ apply , $ interval and setInterval

  • These are AngularJS standard API .

1 . $ interval ( it will be update by every second as long as this continues ) .

Ex :

var Update = function () {

$ scope . now = new Date ();

};

Update ();

$ interval ( Update , 1000 );

2. setInterval (it will be updated when $ digest loop occurred ) .

var Update = function () {

$ scope . now = new Date ();

};

Update ();

setInterval ( Update , 1000 );

3. $ apply ( it is reflected in the per second ) .

var Update = function () {

$ scope . now = new Date ();

};

Update ();

setInterval ( function () {

$ scope . $ Apply ( Update );

}, 1000 );

 

Your comments are always welcome …

AngularJS 1.3.0 – Advanced Features

AngularJS 1.3.0 – Useful Features

This release includes Extra features are many.

•    One-time bindings  :- To improve performance of App ( Be-carful to use this feature ) .
•    NgAria :- Accessible custom components ( New module ) .
•    NgMessages :- To make it easier to implement the feedback (message) to the validity of the form ( New directives ) .
•    NgModelOptions :- To make it easier to customize the behaviour of the bound model ( New directives ) .
•    Strict DI – options that you can find a code that can not be minify If you are using the simplified the DI syntax

## AngularJS 1.3.0 has significantly improved performance. The reduced memory consumption, to increase the speed of DOM operations.

## For more information,
You can find :-
— GitHub Benchmarks in the AngularJS source code .
Changelog on Github in, you can confirm all changes list.
## AngularJS has released the official package npm. npm install angular you can get a AngularJS 1.3.0 in.

Main Drawbacks :-

## AngularJS 1.3.0 does not support IE 8.
## AngularJS have continued to support of the IE 8 has achieved a significant improvement and performance improvement was not possible. If you continue to develop applications that require the support of IE 8, please use the latest 1.2.x branch that contains almost all of the non-breaking fixes.