-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (30 loc) · 1.18 KB
/
index.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
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en" ng-app="MyModuleWeather">
<head>
<meta charset="utf-8">
<title>AngularJS: Weather Application</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<div class="container" ng-controller="MyModuleWeather">
<h1>My Weather Report</h1>
<div class="main">
<label for="city">City</label>
<input type="text" ng-model="city" /></br>
<label for="units">Units</label>
<input type="radio" ng-model="units" value="metric"/> Metric
<input type="radio" ng-model="units" value="imperial"/> Imperial</br>
<button class="btn btn-primary" ng-click="change()">Change</button>
<h3>{{name}}</h3>
<p>{{description}}</p>
<p>Temperature: {{main.temp}}</p>
<p>Wind speed: {{wind.speed}}</p>
</div>
</div>
</body>
</html>