AngularJS – Why?

Why Angular? AngularJS is written in Javascript and is a HTML compiler. It was written by developer, Misko Hevery who originally built AngularJS as a solutionĀ for building HTML components with functionality. It is now a fully fledged open source framework. It allows you to build complete applications. It is very easy to learn and youContinue reading “AngularJS – Why?”

AngularJS 1.4 – Declaring a Controller

I’ve been following a few tutorials that describe declaring a MainController. However the tutorials a pre AngularJS 1.3x and are no longer valid. Previous AngularJS allowed you to define a controller globally . As of 1.3x this is no longer the case and you must declare your Controllers inside angular modules. Here’s an example: varContinue reading “AngularJS 1.4 – Declaring a Controller”

Javascript – Revealing Module Pattern

This Javascript pattern allows you to define a piece of code with a private scope but have it accessible with a public method. Easy to implement and simple to understand. <blockquote><code> var createWorker = function() {</code> var task1 = function() { console.log(“moo1”); } var task2 = function() { console.log(“moo2”); } return { job1: task1, job2:Continue reading “Javascript – Revealing Module Pattern”