Tuesday, 2 April 2019

Tuesday, 22 December 2015

Event based communication between controllers. Every angular application has a single root Scope ($rootScope). All the scopes are its descendants. Scopes can generate an  events by emitting ($emit) or broadcasting ($broadcast). Apart from generating events, scope can listen to events as well. Its is achieved by using the $scope.$on  $emit,...
How to debug minified JavaScript files We can debug JavaScript files by placing the debug / break points in the dev tools. Generally the JavaScript files on the production are minified. To debug such minified files, Web browsers provides the "Pretty print" feature which un-minifies the source file. How to un-minify JavaScript file in Chrome  ...

Thursday, 17 December 2015

Angular Modal Dialog ngDialog is the angular directive used for displaying the modal windows in the angular application. Features With this directive we can create the custom dialog box easily. We can create the dialog with  Bootstrap theme Standard theme which is available with directive. The CSS classes can be customized as per...

Monday, 7 December 2015

Lifecycle of AngularJS directive.  AngularJS comes with rich set of in built directives which adds a specific behavior to the HTML markes by transforming the DOM elements. Some examples of directives are ngBind, ngModel. AngularJS provides a way to create custom directives as well. In this tutorial we will understand the directive life cycle...

Tuesday, 24 November 2015

HTTP is a stateless protocol. Each time a client retrieves a new information, it opens a seperate connection to the web / application server. The server does not automatically maintains the contextual information of the client. It leads to many difficulties. Typical example being the online store. User adds the products on the cart by visiting...