Posts

Showing posts from 2015

Implementing custom directives in AngularJS

Image
In my first article  we briefly discussed about AngularJS and the importance of such a framework to build dynamic web applications. Before continuing with the second part of it, I decided to write an article about one of its beautiful concepts called "Directives", since it is better to understand the importance of it with a real world usage rather than a detailed explanation. I will be demonstrating the importance of Directives by building our own custom directive step by step. What is a directive? The word 'directive' was not that familiar to us before AngularJS was introduced. If you have used HTML before, (Ok, pardon me! I know you won't be reading this article if you haven't used HTML before! :)) you know what are elements, attributes, classes, comments etc. Elements <html> <body> <script> <div> You know many of them. Attributes href hidden id label Sounds familiar right? Therefore I assume you already kn...

Should we use AngularJS? (Part 1)

Image
AngularJS is really a Super-heroic (not just because they say so) framework when it comes to modern web application development. With the introduction of AngularJS, there was no longer a place for most of the loopholes and smelly codes in client side programming. It helped the web developers a lot to manage, reuse and extend their code by providing the the well reputed MVC architecture and a blueprint to build their applications upon. So lets make a quick peep into this awesomeness! Why so dynamic? Nowadays, when we browse through the internet, we come across thousands of types of those fancy features in web apps. We seldom find pure HTML-only websites (almost never web apps). This is due to the extensive list of features provided by Javascript, which took the web application domain into a whole new level during the past  two decades . A few years back, After submitting a form, we had to wait for a considerable amount of time until the page completely reloads, just to know...