Auto and Manual Bootstrapping AngularJS Application
AngularJS application auto-bootstrapped using ngApp directive. ngApp directive designates the root element of the application. Only one application can be bootstrapped per HTML document. To bootstrap any other module inside an application can be done manually using angular.bootstrap() method. In this demo, "We will learn about bootstrapping AngularJS module application using ng-app directive and bootstrap() […]
Introducing Batarang : AngularJS Debugger
Batarang is an AngularJS application debugger for Chrome Browser and available as chrome extension. Batarang can be found in Chrome web store and installed.Below URL points to the Batarang Chrome web store link. batarang chrome link Github project URL of Batarang is listed below. https://github.com/angular/angularjs-batarang […]
AngularJS Message Module
AngularJS provides ngMessages a new module to provide more control on displaying messages. ngMessage module is present in angular-messages.min.js script file. In this demo, "We will implement ngMessage module for email validation inside a form". Below code shows the demonstration of ngMessage module wing ng-messages and ng-message element. <!DOCTYPE html> <html ng-app="myApp"> <head> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.1/angular.min.js"></script> <script […]
AngularJS Publish Subscribe Using Emit and Broadcast
AngularJS provides publish subscribe mechanism using using $emit and $broadcast mechanism. A published message can be subscribed or listened using $on method. In this demo, "We will learn the difference between Emit and broadcast pub-sub mechanism using a real simple example". Difference between Emit and […]