-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (28 loc) · 983 Bytes
/
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
<html>
<head>
<title>B&C Recipes</title>
<link rel="stylesheet" href="./main.css">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<div class="container">
<div class="one">
<h1>B&C Recipes</h1>
<button ng-click="reload()">Reload categories</button>
<button ng-click="random()">Random Meal</button>
</div>
<div class="two">
<div ng-repeat="item in food" ng-click="clicked(item.strCategory, item.idMeal)">
<div class="result">
<h1>{{item.strCategory}}</h1>
<h2>{{item.strMeal}}</h2>
<h3>{{item.strArea}}</h3>
<img src="{{item.strCategoryThumb}}{{item.strMealThumb}}">
<p>{{item.strCategoryDescription}}{{item.strInstructions}}</p>
</div>
</div>
</div>
</div>
</body>
</html>