AngularJS Form Boilerplate

In this example below you will see how to do a AngularJS Form Boilerplate with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by benjaminzanatta, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright benjaminzanatta ©

Technologies

  • HTML
  • CSS
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>AngularJS Form Boilerplate</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="container" ng-app="formApp">
  
  <form name="form" method="" action="" novalidate>
    
    <label for="name">Name :</label>
    <br>
    <input id="name" name="name" type="text" ng-model="user.name">
    
    <br>
    
    <label for="email">Email :</label>
    <br>
    <input id="email" name="email" type="email" ng-model="user.email">
    
    <br>
    
    <label for="message">Message :</label>
    <br>
    <textarea id="message" name="message" cols="30" rows="10" ng-model="user.message"></textarea>
    
    <br>
    
    <input type="submit" value="Send">
    
  </form>
  
</div>
  <script src='http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/benjaminzanatta/angularjs-form-boilerplate-repuH */
/* ============================== *\
  # UNDER CONSTRUCTION #
\* ============================== */

/*Downloaded from https://www.codeseek.co/benjaminzanatta/angularjs-form-boilerplate-repuH */
var formApp = angular.module('formApp', []);

formApp.controller('FormCtrl', ['$scope', function($scope) {
  
}]);

Comments