Commit 306c0215 authored by Pascal Hartig's avatar Pascal Hartig

Durandal: Link and style fixes

parent 14d8399b
......@@ -50,7 +50,7 @@ define([
// map array of passed in todos to an observableArray of Todo objects
self.todos = ko.observableArray();
self.showMode = ko.observable('all');
self.filteredTodos = ko.computed(function () {
......@@ -150,6 +150,6 @@ define([
};
return ViewModel;
});
\ No newline at end of file
});
<header id="header">
<h1>todos</h1>
<input id="new-todo" data-bind="value: current, valueUpdate: 'afterkeydown', enterKey: add" placeholder="What needs to be done?" autofocus>
</header>
</header>
......@@ -33,4 +33,4 @@
<button id="clear-completed" data-bind="visible: completedCount, click: removeCompleted">
Clear completed (<span data-bind="text: completedCount"></span>)
</button>
</footer>
\ No newline at end of file
</footer>
<div>
<div>
<div>
<!--ko compose: {
<!--ko compose: {
model: router.activeItem, // wiring the router
afterCompose: router.afterCompose, // wiring the router
cacheViews: true // telling composition to keep views in the dom, and reuse them (only a good idea with singleton view models)
......@@ -8,7 +8,7 @@
</div>
<footer id="info">
<p>Double-click to edit a todo</p>
<p>Original Knockout version from <a href="https://github.com/abhinavgujjar/durandal-todos">Abhinav Gujjar</a></p>
<p>Written by <a href="https://github.com/abhinavgujjar">Abhinav Gujjar</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
</div>
\ No newline at end of file
</div>
<section id="todoapp">
<!--ko compose: {
<!--ko compose: {
model: 'js/viewmodels/entry', activate: true
}--><!--/ko-->
<div>
<!--ko compose: {
<!--ko compose: {
model: 'js/viewmodels/list', activate: true
}--><!--/ko-->
</div>
</section>
\ No newline at end of file
</section>
......@@ -696,8 +696,8 @@
},
"durandal": {
"name": "Durandal",
"description": "Single Page Apps Done Right..",
"homepage": "http://durandaljs.com",
"description": "Single Page Apps Done Right.",
"homepage": "durandaljs.com",
"examples": [{
"name": "Dependency Example",
"url": "labs/dependency-examples/durandal/index.html"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment