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

Durandal: Link and style fixes

parent 14d8399b
...@@ -50,7 +50,7 @@ define([ ...@@ -50,7 +50,7 @@ define([
// map array of passed in todos to an observableArray of Todo objects // map array of passed in todos to an observableArray of Todo objects
self.todos = ko.observableArray(); self.todos = ko.observableArray();
self.showMode = ko.observable('all'); self.showMode = ko.observable('all');
self.filteredTodos = ko.computed(function () { self.filteredTodos = ko.computed(function () {
...@@ -150,6 +150,6 @@ define([ ...@@ -150,6 +150,6 @@ define([
}; };
return ViewModel; return ViewModel;
}); });
\ No newline at end of file
<header id="header"> <header id="header">
<h1>todos</h1> <h1>todos</h1>
<input id="new-todo" data-bind="value: current, valueUpdate: 'afterkeydown', enterKey: add" placeholder="What needs to be done?" autofocus> <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 @@ ...@@ -33,4 +33,4 @@
<button id="clear-completed" data-bind="visible: completedCount, click: removeCompleted"> <button id="clear-completed" data-bind="visible: completedCount, click: removeCompleted">
Clear completed (<span data-bind="text: completedCount"></span>) Clear completed (<span data-bind="text: completedCount"></span>)
</button> </button>
</footer> </footer>
\ No newline at end of file
<div> <div>
<div> <div>
<!--ko compose: { <!--ko compose: {
model: router.activeItem, // wiring the router model: router.activeItem, // wiring the router
afterCompose: router.afterCompose, // 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) 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 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<footer id="info"> <footer id="info">
<p>Double-click to edit a todo</p> <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> <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer> </footer>
</div> </div>
\ No newline at end of file
<section id="todoapp"> <section id="todoapp">
<!--ko compose: { <!--ko compose: {
model: 'js/viewmodels/entry', activate: true model: 'js/viewmodels/entry', activate: true
}--><!--/ko--> }--><!--/ko-->
<div> <div>
<!--ko compose: { <!--ko compose: {
model: 'js/viewmodels/list', activate: true model: 'js/viewmodels/list', activate: true
}--><!--/ko--> }--><!--/ko-->
</div> </div>
</section>
</section>
\ No newline at end of file
...@@ -696,8 +696,8 @@ ...@@ -696,8 +696,8 @@
}, },
"durandal": { "durandal": {
"name": "Durandal", "name": "Durandal",
"description": "Single Page Apps Done Right..", "description": "Single Page Apps Done Right.",
"homepage": "http://durandaljs.com", "homepage": "durandaljs.com",
"examples": [{ "examples": [{
"name": "Dependency Example", "name": "Dependency Example",
"url": "labs/dependency-examples/durandal/index.html" "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