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
Eugene Shen
todomvc
Commits
eaf7c3a4
Commit
eaf7c3a4
authored
Jan 06, 2016
by
Rosana Ruiz
Committed by
Pascal Hartig
Jan 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug: Show all items when "All" tab is active
parent
d692aa3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
examples/typescript-angular/js/Application.js
examples/typescript-angular/js/Application.js
+1
-1
examples/typescript-angular/js/controllers/TodoCtrl.ts
examples/typescript-angular/js/controllers/TodoCtrl.ts
+1
-1
examples/typescript-angular/js/interfaces/ITodoScope.ts
examples/typescript-angular/js/interfaces/ITodoScope.ts
+2
-2
No files found.
examples/typescript-angular/js/Application.js
View file @
eaf7c3a4
...
...
@@ -129,7 +129,7 @@ var todos;
TodoCtrl
.
prototype
.
onPath
=
function
(
path
)
{
this
.
$scope
.
statusFilter
=
(
path
===
'
/active
'
)
?
{
completed
:
false
}
:
(
path
===
'
/completed
'
)
?
{
completed
:
true
}
:
null
;
{
completed
:
true
}
:
{}
;
};
TodoCtrl
.
prototype
.
onTodos
=
function
()
{
this
.
$scope
.
remainingCount
=
this
.
filterFilter
(
this
.
todos
,
{
completed
:
false
}).
length
;
...
...
examples/typescript-angular/js/controllers/TodoCtrl.ts
View file @
eaf7c3a4
...
...
@@ -52,7 +52,7 @@ module todos {
onPath
(
path
:
string
)
{
this
.
$scope
.
statusFilter
=
(
path
===
'
/active
'
)
?
{
completed
:
false
}
:
(
path
===
'
/completed
'
)
?
{
completed
:
true
}
:
null
;
{
completed
:
true
}
:
{}
;
}
onTodos
()
{
...
...
examples/typescript-angular/js/interfaces/ITodoScope.ts
View file @
eaf7c3a4
...
...
@@ -10,8 +10,8 @@ module todos {
doneCount
:
number
;
allChecked
:
boolean
;
reverted
:
boolean
;
statusFilter
:
{
completed
:
boolean
;
};
statusFilter
:
{
completed
?:
boolean
};
location
:
ng
.
ILocationService
;
vm
:
TodoCtrl
;
}
}
\ No newline at end of file
}
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