-
Notifications
You must be signed in to change notification settings - Fork 3
/
salario.html
26 lines (26 loc) · 935 Bytes
/
salario.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html ng-app="salarioApp">
<head>
<title></title>
</head>
<body ng-controller="salarioController">
<input ng-model="salario" type="number"></input><br>
<button type="button" ng-click="calcular()">Calcular</button>
<ul ng-show="resultado">
<li>Salario base: {{resultado.base | currency }}</li>
<li>Percentual Reajuste: {{resultado.reajuste}}%</li>
<li>Valor Reajuste: {{resultado.valor_reajuste | currency }}</li>
<li>Salario Reajustado: {{resultado.total | currency }}</li>
</ul>
</body>
<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript" src="angular-locale_pt-br.js"></script>
<script type="text/javascript" src="salario.service.js"></script>
<script type="text/javascript" src="salario.controller.js"></script>
<script type="text/javascript">
var app = angular.module('salarioApp', [
'salarioApp.controllers',
'salarioApp.services',
]);
</script>
</html>