Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
306c0215
Commit
306c0215
authored
Aug 26, 2013
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Durandal: Link and style fixes
parent
14d8399b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
15 deletions
+14
-15
labs/dependency-examples/durandal/js/viewmodels/list.js
labs/dependency-examples/durandal/js/viewmodels/list.js
+3
-3
labs/dependency-examples/durandal/js/views/entry.html
labs/dependency-examples/durandal/js/views/entry.html
+1
-1
labs/dependency-examples/durandal/js/views/list.html
labs/dependency-examples/durandal/js/views/list.html
+1
-1
labs/dependency-examples/durandal/js/views/shell.html
labs/dependency-examples/durandal/js/views/shell.html
+4
-4
labs/dependency-examples/durandal/js/views/todoapp.html
labs/dependency-examples/durandal/js/views/todoapp.html
+3
-4
learn.json
learn.json
+2
-2
No files found.
labs/dependency-examples/durandal/js/viewmodels/list.js
View file @
306c0215
...
...
@@ -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
});
labs/dependency-examples/durandal/js/views/entry.html
View file @
306c0215
<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>
labs/dependency-examples/durandal/js/views/list.html
View file @
306c0215
...
...
@@ -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>
labs/dependency-examples/durandal/js/views/shell.html
View file @
306c0215
<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>
labs/dependency-examples/durandal/js/views/todoapp.html
View file @
306c0215
<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>
learn.json
View file @
306c0215
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment