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
ee1887e2
Commit
ee1887e2
authored
Apr 08, 2015
by
Sam Saccone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typescript-angular: Update compilation
parent
9b444299
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
examples/typescript-angular/js/Application.js
examples/typescript-angular/js/Application.js
+22
-10
examples/typescript-angular/js/Application.js.map
examples/typescript-angular/js/Application.js.map
+1
-1
No files found.
examples/typescript-angular/js/Application.js
View file @
ee1887e2
...
...
@@ -44,9 +44,7 @@ var todos;
function
todoBlur
()
{
return
{
link
:
function
(
$scope
,
element
,
attributes
)
{
element
.
bind
(
'
blur
'
,
function
()
{
$scope
.
$apply
(
attributes
.
todoBlur
);
});
element
.
bind
(
'
blur
'
,
function
()
{
$scope
.
$apply
(
attributes
.
todoBlur
);
});
}
};
}
...
...
@@ -54,7 +52,7 @@ var todos;
})(
todos
||
(
todos
=
{}));
/// <reference path='../_all.ts' />
var
todos
;
(
function
(
_todos
)
{
(
function
(
todos_1
)
{
'
use strict
'
;
/**
* Services that persists and retrieves TODOs from localStorage.
...
...
@@ -71,7 +69,7 @@ var todos;
};
return
TodoStorage
;
})();
_todos
.
TodoStorage
=
TodoStorage
;
todos_1
.
TodoStorage
=
TodoStorage
;
})(
todos
||
(
todos
=
{}));
/// <reference path='../_all.ts' />
var
todos
;
...
...
@@ -106,7 +104,9 @@ var todos;
$scope
.
location
=
$location
;
}
TodoCtrl
.
prototype
.
onPath
=
function
(
path
)
{
this
.
$scope
.
statusFilter
=
(
path
===
'
/active
'
)
?
{
completed
:
false
}
:
(
path
===
'
/completed
'
)
?
{
completed
:
true
}
:
null
;
this
.
$scope
.
statusFilter
=
(
path
===
'
/active
'
)
?
{
completed
:
false
}
:
(
path
===
'
/completed
'
)
?
{
completed
:
true
}
:
null
;
};
TodoCtrl
.
prototype
.
onTodos
=
function
()
{
this
.
$scope
.
remainingCount
=
this
.
filterFilter
(
this
.
todos
,
{
completed
:
false
}).
length
;
...
...
@@ -139,9 +139,7 @@ var todos;
this
.
$scope
.
todos
=
this
.
todos
=
this
.
todos
.
filter
(
function
(
todoItem
)
{
return
!
todoItem
.
completed
;
});
};
TodoCtrl
.
prototype
.
markAll
=
function
(
completed
)
{
this
.
todos
.
forEach
(
function
(
todoItem
)
{
todoItem
.
completed
=
completed
;
});
this
.
todos
.
forEach
(
function
(
todoItem
)
{
todoItem
.
completed
=
completed
;
});
};
// $inject annotation.
// It provides $injector with information about dependencies to be injected into constructor
...
...
@@ -166,6 +164,20 @@ var todos;
var
todos
;
(
function
(
todos
)
{
'
use strict
'
;
var
todomvc
=
angular
.
module
(
'
todomvc
'
,
[]).
controller
(
'
todoCtrl
'
,
todos
.
TodoCtrl
).
directive
(
'
todoBlur
'
,
todos
.
todoBlur
).
directive
(
'
todoFocus
'
,
todos
.
todoFocus
).
service
(
'
todoStorage
'
,
todos
.
TodoStorage
);
var
todomvc
=
angular
.
module
(
'
todomvc
'
,
[])
.
controller
(
'
todoCtrl
'
,
todos
.
TodoCtrl
)
.
directive
(
'
todoBlur
'
,
todos
.
todoBlur
)
.
directive
(
'
todoFocus
'
,
todos
.
todoFocus
)
.
service
(
'
todoStorage
'
,
todos
.
TodoStorage
);
})(
todos
||
(
todos
=
{}));
/// <reference path='libs/jquery/jquery.d.ts' />
/// <reference path='libs/angular/angular.d.ts' />
/// <reference path='models/TodoItem.ts' />
/// <reference path='interfaces/ITodoScope.ts' />
/// <reference path='interfaces/ITodoStorage.ts' />
/// <reference path='directives/TodoFocus.ts' />
/// <reference path='directives/TodoBlur.ts' />
/// <reference path='services/TodoStorage.ts' />
/// <reference path='controllers/TodoCtrl.ts' />
/// <reference path='Application.ts' />
//# sourceMappingURL=Application.js.map
\ No newline at end of file
examples/typescript-angular/js/Application.js.map
View file @
ee1887e2
This diff is collapsed.
Click to expand it.
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