Sunday, 25 November 2012

Angular JS Email Validation in ASP.NET

<html xmlns="">
<head runat="server">
    <style type="text/css" >
    <script type ="text/javascript" src=""></script>
    <script type="text/javascript">
        angular.module('App', []);
        function Ctrl($scope) {
            //$scope.text = '';
  <div ng-app="App">
  <form name="form1" ng-controller="Ctrl" action ="">
  Email Address:<input type="email" name="input" ng-model="text" required placeholder="Enter Your Address">
    <span class="error" ng-show="form1.input.$error.required">
      Email Adress is Required!</span>
    <span class="error" ng-show="form1.input.$">
      Enter valid Email Address!</span>  

The Output

No comments:

Post a Comment

© 2012-2018 All Rights Reserved.
The content is copyrighted to Kishore and may not be reproduced on other websites without permission from the owner.