Browsing Tag

controller

javascript

$broadcast will channel down to all the children dom elements and $emit will channel the opposite direction to all the ancestor dom elements.The best way to avoid deciding between $emit or $broadcast is to channel from the $rootScope and use $broadcast to all its children.Note we added $rootScope…
Read More...

AngularJS Development

Maintained by Google and community of corporations and individuals, AngularJS is an open-source web application framework.It helps addressing various complex challenges encountered while developing the single-page application.AngularJS…

Learning AngularJS Basics

Its job is to define the application and serve as a container for all the controllers of that application.To create a module, let’s look at the following code:scriptvar app = angular.module(“appModule”, );/scriptThis is the syntax to…

Learning AngularJS Basics

Its job is to define the application and serve as a container for all the controllers of that application.To create a module, let’s look at the following code:scriptvar app = angular.module(“appModule”, );/scriptThis is the syntax to…

Using Promises in AngularJS Views

This admittedly contrived service’s ‘getMessages’ function takes a callback, then waits two seconds (using Angular’s $timeout service) before passing an array of messages to the callback function.In both the callback and promise versions…

AngularJS Fundamentals

In this series, you will learn how to build a non-trivial AngularJS application from the ground up through a series of small, digestible lessons.As we build out our sample application, Eggly, you will quickly start to identify useful…