<!doctype html> <html ng-app = "Registration" > <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script> </head> <body> <div> <label>First Name:</label> <input type="text" ng-model="First Name" placeholder="Enter a first name here"> <hr> <label>Last Name:</label> <input type="text" ng-model="Last Name" placeholder="Enter a last name here"> <hr> <label>Email_Id:</label> <input type="text" ng-model="Email_id" placeholder="Enter a your email here"> <hr> <label>Password:</label> <input type="password" ng-model="Password" placeholder="Enter your password here"> <hr> <label>Confirm Password:</label> <input type="password" ng-model="Confirm Password" placeholder="Confirm your password please"> <hr> <div ng-controller="Submit"> <button ng-click= "redirect()">Submit</button> <button ng-click= "cancel()">Cancel</button> </div> <script> var application =angular.module('Registration',[]); application.controller('Submit', function($scope) { $scope.redirect = function(){ window.location = "#/login.html"; }; $scope.cancel = function(){ $scope.register = 'Cancel'; }; }); </script> </div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more