AngularJS: Communicate Among Controllers

Communicate Between Controllers

Working with AngularJS has made things very easy for front-end developers. We can handle almost everything with Controllers. Parent-Child Controllers There are times when we needed to work with more then one controllers and we need to communicate between those controllers. It would be easy to communicate between controllers if they are in parent-child relation. Independent Controllers In case the controllers are independent and we need to pass information on an event of one controller to another. In this case we

Continue Reading

Creating Custom Directives in AngularJS

Communicate Between Controllers

Directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS’s HTML compiler ($compile) to attach a specified behavior to that DOM element (e.g. via event listeners), or even to transform the DOM element and its children. – AngularJS.org In this blog, I will show how to create custom directives. To better understand concept of Directive please go through the AngularJS’s Custom Directive section. If you are new to AngularJS, please read

Continue Reading

Difference between ngIf and ngShow-ngHide in AngularJS

Communicate Between Controllers

While learning AngularJS, it is very important to learn basic fundamentals of the framework. Many time it seems like couple of functions works exactly same way then also they all exist. But there may be minor but important difference between them. In AngularJS, I came across these kind of two directives which works almost same way at the first site. But when I read more, I found they look like same but not the same at all. In this post, I

Continue Reading

Fetch XML feed with AngularJS

Communicate Between Controllers

AngularJS fetches the JSON feed from external file. But in case if we want to fetch the feed from an XML? In this post I will let you know the Dependency Injection (DI) available to fetch the XML feed in AngularJS. This post is in continuation of my earlier Introduction of AngularJS post. Recently, I thought to show my Stack Overflow feed on my blog and started creating a small widget using AngularJS. As Stack Overflow offers user feed in XML format,

Continue Reading

Superheroic JavaScript MVW Framework: AngularJS

Communicate Between Controllers

AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVW, MVVM, MVC, dependency injection and great stability story all implemented with pure client-side JavaScript! What is MVW? It stands for Model-View-Whatever, it is also known as MV*. Whatever stands for “whatever works for you!”. History of AngularJS AngularJS was originally developed at Google in 2009 by Miško Hevery and Adam Abrons as the software behind an online JSON storage service. Abrons left

Continue Reading