Using Controller-as-a syntax and why it’s important

What is “controller as a” syntax ?

It’s a new way of defining your controller. Instead of using $scope, we can use the ‘this‘ in its place.This helps with the architecture of…

Read More

Testing with Jasmine + Karma

Testing with Jasmine + Karma

The Setup

AngularJS has many testing frameworks that can be used such as qunit, mocha, protractor, and so on. This particular blog post will be using Jasmine. Jasmine is behavior-driven development framework for…

Read More

Which one should you use: angular. copy or angular. extend?

Which one should you use: angular. copy or angular. extend?

As you’d expect, the correct answer to this questions is not between which one to use, but rather which one you need. And the best person to answer this is…

Read More

Getting to know $watch

This week I came across a $watch, and thought I’d share what I had learnt about it. First, you need to understand how the Angular digest cycle works.


The Digest Cycle…

Read More

Using AngularJS Directives

What are Directives ?

AngularJS directives are what controls the rendering of the HTML inside an AngularJS application. At a high level, directives are markers on a DOM element that tell…

Read More

Getting familiar with Strict Contextual Escaping in Angular

The Problem:

While working on a recent project, I needed to show the highlighting that was part of the Solr response. The highlighting was done with html markup as part of the response.…

Read More

Data Binding with AngularJS

AngularJS is a JavaScript framework developed by Google. Angular is what HTML would have been, had it been designed for applications.


Data binding is the most useful and powerful feature of…

Read More