Skip to content

Instantly share code, notes, and snippets.

@ericdouglas
Created January 29, 2014 16:23
Show Gist options
  • Save ericdouglas/8691541 to your computer and use it in GitHub Desktop.
Save ericdouglas/8691541 to your computer and use it in GitHub Desktop.
Study of "Recipes With AngularJS" - Chapter 1 - Recipe 2 - Example 02
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chapter 1 - Recipe 2 - Example 02</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script>
</head>
<body ng-app>
<h2>Define your informations:</h2>
Telephone: <input type="tel" ng-model="tel"> <br>
E-mail: <input type="email" ng-model="email"> <br>
Favorite Color: <input type="color" ng-model="color"> <br>
<h3>Your datas:</h3>
<p>
Telephone: {{ tel }} <br>
E-mail: {{ email }} <br>
Favorite Color: {{ color }}
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment