Skip to content

Commit 87f1007

Browse files
author
Erik Mellum
committed
Adds today's stuff
1 parent 8dba9ce commit 87f1007

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

index.html

+12-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ <h1><a ui-sref="login">Login</a></h1>
2828
<ul class="right">
2929
<li class="active"><a href="#">Right Button Active</a></li>
3030
<li class="has-dropdown">
31-
<a href="#">Right Button Dropdown</a>
31+
<a href="#">Right Button Drxopdown</a>
3232
<ul class="dropdown">
33-
<li><a href="#">First link in dropdown</a></li>
33+
<li><a ui-sref="home">First link in dropdown</a></li>
3434
<li class="active"><a href="#">Active link in dropdown</a></li>
3535
</ul>
3636
</li>
@@ -44,5 +44,15 @@ <h1><a ui-sref="login">Login</a></h1>
4444
</nav>
4545
<div ui-view>
4646
</div>
47+
<ul class="side-nav" role="navigation" title="Link List">
48+
<li role="menuitem"><a href="#">Link 1</a></li>
49+
<li role="menuitem"><a href="#">Link 2</a></li>
50+
<li role="menuitem"><a href="#">Link 3</a></li>
51+
<li role="menuitem"><a href="#">Link 4</a></li>
52+
</ul>
53+
<div class="switch">
54+
<input id="exampleCheckboxSwitch" type="checkbox">
55+
<label for="exampleCheckboxSwitch"></label>
56+
</div>
4757
</body>
4858
</html>

js/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var app = angular.module('myApp', ['ui.router'])
22

33
.controller('listCtrl', ['$scope', function($scope){
4-
$scope.items=[];
4+
$scope.items=['test', 'hello', 'viktor', '511'];
55
$scope.addItem=function(item){
66
$scope.items.push(item);
77
}

templates/todo.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11

22
<div class="row" ng-controller="listCtrl">
33
<h1>Todo</h1>
4-
<input type="text" placeholder="What do you have to do?" ng-model="text" ng-enter="addItem(text)">
4+
Search: <input type="text" ng-model="search" placeholder="Search phrase">
5+
Add Item: <input type="text" placeholder="What do you have to do?" ng-model="text" ng-enter="addItem(text)">
56
<button class="button success tiny" ng-click="addItem(text)">Add Item</button>
67
<ul>
7-
<li ng-repeat="item in items">{{item}}
8+
<li ng-repeat="item in items | filter:search | orderBy:'name'">{{item}}
89
<button class="label tiny alert" confirmed-click="removeItem($index)" ng-confirm-click="Are you sure you want to delete the project?">Remove Item</button>
10+
<br>
11+
<br>
912
</li>
1013
</ul>
1114
</div>

0 commit comments

Comments
 (0)