Anshul Agrawal

28 Flips | 1 Magazine | 1 Like | 1 Follower | @anshul1007 | Keep up with Anshul Agrawal on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Anshul Agrawal”

11 Tips to Improve AngularJS Performance

Share this:<p>I am new to Angular (even though I am not new to the web development), so please take everything that I am about to say with a grain of …

Top 18 Most Common Mistakes that AngularJS Developers Make

Single page apps demand the front-end developers to become better software engineers. CSS and HTML are not the biggest concern anymore, in fact, …

Better world by better software

Dynamically Attaching controllers to a directive

In this lesson we will learn a way to dynamically attach controllers to a directive, the reason I’m calling this dynamic is that here we will specify …

$rootScope.$broadcast vs. $scope.$emit

Now that the performance difference between $broadcast and $emit has been eliminated, is there any reason to prefer $scope.$emit to …

Facebook authentication in your AngularJS web app

AD, please don't block.<p>Recently I already wrote about how to handle user authentication in a web app built over AngularJS, and I suggest you to read …

Immediately-Invoked Function Expression (IIFE)

In case you hadn’t noticed, I’m a bit of a stickler for terminology. So, after hearing the popular, yet misleading, JavaScript term “self-executing …

Ng-idle

Dependencies<p>The only required dependency is AngularJS (1.2 or later). If you wish to use the modal approach from this demo, see the "Getting Started" …

Dan Wahlin - Creating Custom AngularJS Directives Part I – The Fundamentals

Creating Custom AngularJS Directives Series<p>AngularJS provides many directives that can be used to manipulate the DOM, route events to event handler …

Transclusion and scopes

The problemThere is a common misconception that I see when I am doing Angular support. My goal here is to address it.Let’s imagine I have this simple …

Use ngStorage For All Your AngularJS Local Storage Needs

• December 2, 2014<br>• Nic Raboy<br>• AngularJS, Ionic Framework 1.x<p>I’ve been doing a lot of work with AngularJS lately, and in particular Ionic Framework. …

Transclude in AngularJS

<b>Transclude</b> - That's not a word you'll find in a dictionary :). Once you dive into <i>Angular</i>, creating custom directives is a daily chore and having good …

Authentication made simple in Single Page AngularJS Applications

The following is a login pattern that I’ve been using in all of my single page AngularJS applications (SPA). We recently introduced it into a client …

AngularJS: Factory vs Service vs Provider

When you first get started with Angular, you’ll naturally find yourself flooding your controllers and scopes with unnecessary logic. It’s important …

AngularJS Best Practices #001: Constants

I’m working with AngularJS for almost two years and I’ve decided to post a series of AngularJS best practices to share my experience and get feedback …

AngularJS Corner – Using promises and $q to handle asynchronous calls

<i>Updated 10/26/2015 - for information on how Angular2 handles asyncronous calls, take a look at my latest post, Angular2 Observables and Http -</i> …

AngularJS Directives - Basics

I have recently been working with AngularJS directives and this is probably my favorite feature of the project. It is a really clever and powerful …

AngularJS testing using Jasmine + Karma in Visual Studio 2013

I am new to Angularjs framework and also testing it using Jasmine framework and Karma. I have a ASP.NET MVC app built with Visual Studio 2013 and I …

Angular JS - you probably shouldn't use $watch in your controllers.

The problem with $watch isn’t so much that it doesn’t work. It definitely works. The problems are two-fold:<br>• It’s hard/hackish to test effectively.<br>• It’s …

AngularJS - 10 Best Practices to Create Custom Directives

<b>Naming Convention</b>: Prefer using two or three letter prefix (except ng) while naming directives to avoid collision with future HTML releases. Using …

AngularJS Directive Design Made Easy

AngularJS Directive Design Made EasyAngularJS directives are coolAngularJS is a web application framework that makes creating complicated web …