Javascript 51
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 […]
AngularJS filter module
AngularJS provide filtering function in ng module. filter keyword can be used to filter from a array of element or array of object. In this demo, "We will create an example to filter from an array of item and from array of object with a specified property of the object". In the example the initial […]
AngularJS Form Validation
AngularJS provides form validation using $invalid and $valid tag. These $invalid and $valid tags are Boolean in nature. In this Demo,"We will create button with 2 required input field. The submit button will be disabled and text color is red if form is invalid.Once the form is valid the submit button become active and color […]