forked from dart-archive/angular.dart.tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (44 loc) · 1.56 KB
/
Copy pathindex.html
File metadata and controls
54 lines (44 loc) · 1.56 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html ng-app>
<head>
<title>Chapter Six - A Simple Recipe Book</title>
<link rel="stylesheet" href="style.css">
</head>
<body ng-cloak>
<div recipe-book>
<header id="header">
<h2>Angular is fun! Here's a recipe book to prove it!</h2>
</header>
<div ng-if="!ctrl.recipesLoaded || !ctrl.categoriesLoaded">
{{ctrl.message}}
</div>
<div ng-if="ctrl.recipesLoaded && ctrl.categoriesLoaded">
<nav id="controls">
<search-recipe
name-filter-string="ctrl.nameFilter"
category-filter-map="ctrl.categoryFilterMap">
</search-recipe>
<a href="#/add"><input type="button" value="Add Recipe"></a><br/>
</nav>
<nav id="search-results">
<div id="recipe-list">
<ul>
<li ng-repeat="recipe in ctrl.allRecipes | orderBy:'name' | filter:{name:ctrl.nameFilter} | categoryfilter:ctrl.categoryFilterMap">
<span tooltip="ctrl.tooltipForRecipe(recipe)">
<rating max-rating="5" rating="recipe.rating"></rating>
<a class="extra-space" href="#/recipe/{{recipe.id}}/view">{{recipe.name}}</a>
</span>
</li>
</ul>
</div>
</nav>
<section id="details">
<ng-view></ng-view>
</section>
</div>
</div>
<script type="application/dart" src="main.dart"></script>
<script type="text/javascript" src="packages/browser/dart.js"></script>
<script src="packages/shadow_dom/shadow_dom.debug.js"></script>
</body>
</html>