Skip to content

Instantly share code, notes, and snippets.

@mowamed
Last active April 4, 2018 11:52
Show Gist options
  • Save mowamed/9a2fefb4e89299bbad9ef1a436191ac0 to your computer and use it in GitHub Desktop.
Save mowamed/9a2fefb4e89299bbad9ef1a436191ac0 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-guide-concepts-1-production</title>
<script src="//code.angularjs.org/snapshot/angular.min.js"></script>
</head>
<body >
<div ng-app>
<b>Eit:</b>
<div>
First Name: <input type="text" ng-model="first_name">
</div>
<div>
Lats Name: <input type="text" ng-model="last_name">
</div>
<div>
Year of birth: <input type="number" max="2018" ng-model="birth_date">
</div>
<div>
Gender:
<select ng-model="gender">
<option value="">
<option value="male">Male
<option value="female">Female
</select>
</div>
<div>
<p>
<b>First Nane:</b> {{first_name}} <br/>
<b>Last Name:</b> {{last_name}} <br/>
<b>Year of birth:</b> {{birth_date}} <br/>
<b>Gender:</b> {{gender}} <br/>
<b>Age:</b> {{birth_date?2018-birth_date:''}} <br/>
</p>
</div>
</div>
</body>
</html>
<!--
Copyright 2018 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment