Created
November 14, 2016 17:12
-
-
Save alexandreaquiles/2159b2ea5cc00ebde958d63b01894b2d to your computer and use it in GitHub Desktop.
Cálculo IMC com Angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app> | |
<body> | |
<label>Peso <input ng-model="peso"/> kg</label><br/> | |
<label>Altura <input ng-model="altura"/> m</label><br/> | |
<div id="resultado"> | |
<hr/> | |
<span>IMC: {{ peso / (altura * altura) | number }}</span> | |
</div> | |
<script src="https://code.angularjs.org/1.3.5/angular.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment