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
dd13679a
Commit
dd13679a
authored
Dec 05, 2014
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TypeScript+AngularJS: Recompile with latest tsc
parent
2522a26d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
50 deletions
+26
-50
examples/typescript-angular/js/Application.js
examples/typescript-angular/js/Application.js
+25
-49
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 @
dd13679a
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
var
todos
;
var
todos
;
(
function
(
todos
)
{
(
function
(
todos
)
{
'
use strict
'
;
'
use strict
'
;
var
TodoItem
=
(
function
()
{
var
TodoItem
=
(
function
()
{
function
TodoItem
(
title
,
completed
)
{
function
TodoItem
(
title
,
completed
)
{
this
.
title
=
title
;
this
.
title
=
title
;
...
@@ -18,35 +17,30 @@ var todos;
...
@@ -18,35 +17,30 @@ var todos;
var
todos
;
var
todos
;
(
function
(
todos
)
{
(
function
(
todos
)
{
'
use strict
'
;
'
use strict
'
;
/**
/**
* Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
* Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
*/
*/
function
todoFocus
(
$timeout
)
{
function
todoFocus
(
$timeout
)
{
return
{
return
{
link
:
function
(
$scope
,
element
,
attributes
)
{
link
:
function
(
$scope
,
element
,
attributes
)
{
$scope
.
$watch
(
attributes
.
todoFocus
,
function
(
newval
)
{
$scope
.
$watch
(
attributes
.
todoFocus
,
function
(
newval
)
{
if
(
newval
)
{
if
(
newval
)
{
$timeout
(
function
()
{
$timeout
(
function
()
{
return
element
[
0
].
focus
();
},
0
,
false
);
return
element
[
0
].
focus
();
},
0
,
false
);
}
}
});
});
}
}
};
};
}
}
todos
.
todoFocus
=
todoFocus
;
todos
.
todoFocus
=
todoFocus
;
todoFocus
.
$inject
=
[
'
$timeout
'
];
todoFocus
.
$inject
=
[
'
$timeout
'
];
})(
todos
||
(
todos
=
{}));
})(
todos
||
(
todos
=
{}));
/// <reference path='../_all.ts' />
/// <reference path='../_all.ts' />
var
todos
;
var
todos
;
(
function
(
todos
)
{
(
function
(
todos
)
{
'
use strict
'
;
'
use strict
'
;
/**
/**
* Directive that executes an expression when the element it is applied to loses focus.
* Directive that executes an expression when the element it is applied to loses focus.
*/
*/
function
todoBlur
()
{
function
todoBlur
()
{
return
{
return
{
link
:
function
(
$scope
,
element
,
attributes
)
{
link
:
function
(
$scope
,
element
,
attributes
)
{
...
@@ -60,12 +54,11 @@ var todos;
...
@@ -60,12 +54,11 @@ var todos;
})(
todos
||
(
todos
=
{}));
})(
todos
||
(
todos
=
{}));
/// <reference path='../_all.ts' />
/// <reference path='../_all.ts' />
var
todos
;
var
todos
;
(
function
(
todos
)
{
(
function
(
_
todos
)
{
'
use strict
'
;
'
use strict
'
;
/**
/**
* Services that persists and retrieves TODOs from localStorage.
* Services that persists and retrieves TODOs from localStorage.
*/
*/
var
TodoStorage
=
(
function
()
{
var
TodoStorage
=
(
function
()
{
function
TodoStorage
()
{
function
TodoStorage
()
{
this
.
STORAGE_ID
=
'
todos-angularjs-typescript
'
;
this
.
STORAGE_ID
=
'
todos-angularjs-typescript
'
;
...
@@ -73,24 +66,22 @@ var todos;
...
@@ -73,24 +66,22 @@ var todos;
TodoStorage
.
prototype
.
get
=
function
()
{
TodoStorage
.
prototype
.
get
=
function
()
{
return
JSON
.
parse
(
localStorage
.
getItem
(
this
.
STORAGE_ID
)
||
'
[]
'
);
return
JSON
.
parse
(
localStorage
.
getItem
(
this
.
STORAGE_ID
)
||
'
[]
'
);
};
};
TodoStorage
.
prototype
.
put
=
function
(
todos
)
{
TodoStorage
.
prototype
.
put
=
function
(
todos
)
{
localStorage
.
setItem
(
this
.
STORAGE_ID
,
JSON
.
stringify
(
todos
));
localStorage
.
setItem
(
this
.
STORAGE_ID
,
JSON
.
stringify
(
todos
));
};
};
return
TodoStorage
;
return
TodoStorage
;
})();
})();
todos
.
TodoStorage
=
TodoStorage
;
_
todos
.
TodoStorage
=
TodoStorage
;
})(
todos
||
(
todos
=
{}));
})(
todos
||
(
todos
=
{}));
/// <reference path='../_all.ts' />
/// <reference path='../_all.ts' />
var
todos
;
var
todos
;
(
function
(
todos
)
{
(
function
(
todos
)
{
'
use strict
'
;
'
use strict
'
;
/**
/**
* The main controller for the app. The controller:
* The main controller for the app. The controller:
* - retrieves and persists the model via the todoStorage service
* - retrieves and persists the model via the todoStorage service
* - exposes the model to the template and provides event handlers
* - exposes the model to the template and provides event handlers
*/
*/
var
TodoCtrl
=
(
function
()
{
var
TodoCtrl
=
(
function
()
{
// dependencies are injected via AngularJS $injector
// dependencies are injected via AngularJS $injector
// controller's name is registered in Application.ts and specified from ng-controller attribute in index.html
// controller's name is registered in Application.ts and specified from ng-controller attribute in index.html
...
@@ -101,23 +92,15 @@ var todos;
...
@@ -101,23 +92,15 @@ var todos;
this
.
todoStorage
=
todoStorage
;
this
.
todoStorage
=
todoStorage
;
this
.
filterFilter
=
filterFilter
;
this
.
filterFilter
=
filterFilter
;
this
.
todos
=
$scope
.
todos
=
todoStorage
.
get
();
this
.
todos
=
$scope
.
todos
=
todoStorage
.
get
();
$scope
.
newTodo
=
''
;
$scope
.
newTodo
=
''
;
$scope
.
editedTodo
=
null
;
$scope
.
editedTodo
=
null
;
// 'vm' stands for 'view model'. We're adding a reference to the controller to the scope
// 'vm' stands for 'view model'. We're adding a reference to the controller to the scope
// for its methods to be accessible from view / HTML
// for its methods to be accessible from view / HTML
$scope
.
vm
=
this
;
$scope
.
vm
=
this
;
// watching for events/changes in scope, which are caused by view/user input
// watching for events/changes in scope, which are caused by view/user input
// if you subscribe to scope or event with lifetime longer than this controller, make sure you unsubscribe.
// if you subscribe to scope or event with lifetime longer than this controller, make sure you unsubscribe.
$scope
.
$watch
(
'
todos
'
,
function
()
{
$scope
.
$watch
(
'
todos
'
,
function
()
{
return
_this
.
onTodos
();
},
true
);
return
_this
.
onTodos
();
$scope
.
$watch
(
'
location.path()
'
,
function
(
path
)
{
return
_this
.
onPath
(
path
);
});
},
true
);
$scope
.
$watch
(
'
location.path()
'
,
function
(
path
)
{
return
_this
.
onPath
(
path
);
});
if
(
$location
.
path
()
===
''
)
if
(
$location
.
path
()
===
''
)
$location
.
path
(
'
/
'
);
$location
.
path
(
'
/
'
);
$scope
.
location
=
$location
;
$scope
.
location
=
$location
;
...
@@ -125,28 +108,23 @@ var todos;
...
@@ -125,28 +108,23 @@ var todos;
TodoCtrl
.
prototype
.
onPath
=
function
(
path
)
{
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
()
{
TodoCtrl
.
prototype
.
onTodos
=
function
()
{
this
.
$scope
.
remainingCount
=
this
.
filterFilter
(
this
.
todos
,
{
completed
:
false
}).
length
;
this
.
$scope
.
remainingCount
=
this
.
filterFilter
(
this
.
todos
,
{
completed
:
false
}).
length
;
this
.
$scope
.
doneCount
=
this
.
todos
.
length
-
this
.
$scope
.
remainingCount
;
this
.
$scope
.
doneCount
=
this
.
todos
.
length
-
this
.
$scope
.
remainingCount
;
this
.
$scope
.
allChecked
=
!
this
.
$scope
.
remainingCount
;
this
.
$scope
.
allChecked
=
!
this
.
$scope
.
remainingCount
;
this
.
todoStorage
.
put
(
this
.
todos
);
this
.
todoStorage
.
put
(
this
.
todos
);
};
};
TodoCtrl
.
prototype
.
addTodo
=
function
()
{
TodoCtrl
.
prototype
.
addTodo
=
function
()
{
var
newTodo
=
this
.
$scope
.
newTodo
.
trim
();
var
newTodo
=
this
.
$scope
.
newTodo
.
trim
();
if
(
!
newTodo
.
length
)
{
if
(
!
newTodo
.
length
)
{
return
;
return
;
}
}
this
.
todos
.
push
(
new
todos
.
TodoItem
(
newTodo
,
false
));
this
.
todos
.
push
(
new
todos
.
TodoItem
(
newTodo
,
false
));
this
.
$scope
.
newTodo
=
''
;
this
.
$scope
.
newTodo
=
''
;
};
};
TodoCtrl
.
prototype
.
editTodo
=
function
(
todoItem
)
{
TodoCtrl
.
prototype
.
editTodo
=
function
(
todoItem
)
{
this
.
$scope
.
editedTodo
=
todoItem
;
this
.
$scope
.
editedTodo
=
todoItem
;
};
};
TodoCtrl
.
prototype
.
doneEditing
=
function
(
todoItem
)
{
TodoCtrl
.
prototype
.
doneEditing
=
function
(
todoItem
)
{
this
.
$scope
.
editedTodo
=
null
;
this
.
$scope
.
editedTodo
=
null
;
todoItem
.
title
=
todoItem
.
title
.
trim
();
todoItem
.
title
=
todoItem
.
title
.
trim
();
...
@@ -154,22 +132,21 @@ var todos;
...
@@ -154,22 +132,21 @@ var todos;
this
.
removeTodo
(
todoItem
);
this
.
removeTodo
(
todoItem
);
}
}
};
};
TodoCtrl
.
prototype
.
removeTodo
=
function
(
todoItem
)
{
TodoCtrl
.
prototype
.
removeTodo
=
function
(
todoItem
)
{
this
.
todos
.
splice
(
this
.
todos
.
indexOf
(
todoItem
),
1
);
this
.
todos
.
splice
(
this
.
todos
.
indexOf
(
todoItem
),
1
);
};
};
TodoCtrl
.
prototype
.
clearDoneTodos
=
function
()
{
TodoCtrl
.
prototype
.
clearDoneTodos
=
function
()
{
this
.
$scope
.
todos
=
this
.
todos
=
this
.
todos
.
filter
(
function
(
todoItem
)
{
this
.
$scope
.
todos
=
this
.
todos
=
this
.
todos
.
filter
(
function
(
todoItem
)
{
return
!
todoItem
.
completed
;
});
return
!
todoItem
.
completed
;
});
};
};
TodoCtrl
.
prototype
.
markAll
=
function
(
completed
)
{
TodoCtrl
.
prototype
.
markAll
=
function
(
completed
)
{
this
.
todos
.
forEach
(
function
(
todoItem
)
{
this
.
todos
.
forEach
(
function
(
todoItem
)
{
todoItem
.
completed
=
completed
;
todoItem
.
completed
=
completed
;
});
});
};
};
// $inject annotation.
// It provides $injector with information about dependencies to be injected into constructor
// it is better to have it close to the constructor, because the parameters must match in count and type.
// See http://docs.angularjs.org/guide/di
TodoCtrl
.
$inject
=
[
TodoCtrl
.
$inject
=
[
'
$scope
'
,
'
$scope
'
,
'
$location
'
,
'
$location
'
,
...
@@ -182,14 +159,13 @@ var todos;
...
@@ -182,14 +159,13 @@ var todos;
})(
todos
||
(
todos
=
{}));
})(
todos
||
(
todos
=
{}));
/// <reference path='_all.ts' />
/// <reference path='_all.ts' />
/**
/**
* The main TodoMVC app module.
* The main TodoMVC app module.
*
*
* @type {angular.Module}
* @type {angular.Module}
*/
*/
var
todos
;
var
todos
;
(
function
(
todos
)
{
(
function
(
todos
)
{
'
use strict
'
;
'
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
=
{}));
})(
todos
||
(
todos
=
{}));
//# sourceMappingURL=Application.js.map
//# sourceMappingURL=Application.js.map
\ No newline at end of file
examples/typescript-angular/js/Application.js.map
View file @
dd13679a
{"version":3,"file":"Application.js","sourceRoot":"","sources":["models/TodoItem.ts","interfaces/ITodoScope.ts","interfaces/ITodoStorage.ts","directives/TodoFocus.ts","directives/TodoBlur.ts","services/TodoStorage.ts","controllers/TodoCtrl.ts","Application.ts","_all.ts"],"names":["todos","todos.TodoItem","todos.TodoItem.constructor","todos.todoFocus","todos.todoBlur","todos.TodoStorage","todos.TodoStorage.constructor","todos.TodoStorage.get","todos.TodoStorage.put","todos.TodoCtrl","todos.TodoCtrl.constructor","todos.TodoCtrl.onPath","todos.TodoCtrl.onTodos","todos.TodoCtrl.addTodo","todos.TodoCtrl.editTodo","todos.TodoCtrl.doneEditing","todos.TodoCtrl.removeTodo","todos.TodoCtrl.clearDoneTodos","todos.TodoCtrl.markAll"],"mappings":"AAAA,mCAAmC;AAEnC,IAAO,KAAK;AASX,CATD,UAAO,KAAK;IACRA,YAAYA;;IAEZA;QACIC,kBACIA,KAAoBA,EACpBA,SAAyBA;YADzBC,UAAYA,GAALA,KAAKA;AAAQA,YACpBA,cAAgBA,GAATA,SAASA;AAASA,QACrBA,CAACA;QACbD,gBAACA;IAADA,CAACA,IAAAD;IALDA,0BAKCA;AACLA,CAACA,yBAAA;ACXD,mCAAmC;ACAnC,mCAAmC;ACAnC,mCAAmC;AAEnC,IAAO,KAAK;AAoBX,CApBD,UAAO,KAAK;IACXA,YAAYA;;IAKZA;;MADGA;IACHA,SAAgBA,SAASA,CAACA,QAA4BA;QACrDG,OAAOA;YACNA,IAAIA,EAAEA,UAACA,MAAiBA,EAAEA,OAAeA,EAAEA,UAAeA;gBACzDA,MAAMA,CAACA,MAAMA,CAACA,UAAUA,CAACA,SAASA,EAAEA,UAAAA,MA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,QAAQA,CAACA,KAAKA,CAAEA;gBACpBA,IAAIA,CAACA,UAAUA,CAACA,QAAQA,CAACA;aACzBA;QACFA,CAACA;;QAEDN,gCAAAA,UAAWA,QAAkBA;YAC5BO,IAAIA,CAACA,KAAKA,CAACA,MAAMA,CAACA,IAAIA,CAACA,KAAKA,CAACA,OAAOA,CAACA,QAAQA,CAACA,EAAEA,CAACA,CAACA;QACnDA,CAACA;;QAEDP,oCAAAA;YACCQ,IAAIA,CAACA,MAAMA,CAACA,KAAKA,GAAGA,IAAIA,CAACA,KAAKA,GAAGA,IAAIA,CAACA,KAAKA,CAACA,MAAMA,CAACA,UAAAA,QAAQA;uBAAIA,CAACA,QAAQA,CAACA,SAASA;YAAnBA,CAAmBA,CAACA;QACpFA,CAACA;;QAEDR,6BAAAA,UAAQA,SAAkBA;YACzBS,IAAIA,CAACA,KAAKA,CAACA,OAAOA,CAACA,UAAAA,QAAQA;gBAAMA,QAAQA,CAACA,SAASA,GAAGA,SAASA;YAAEA,CAACA,CAACA;QACpEA,CAACA;QA9EDT,mBAAwBA;YACvBA,QAAQA;YACRA,WAAWA;YACXA,aAAaA;YACbA,cAAcA;SACdA;QA0EFA,gBAACA;IAADA,CAACA,IAAAT;IAvFDA,0BAuFCA;AAEFA,CAACA,yBAAA;ACnGD,gCAAgC;AAEhC;;;;EAIG;AACH,IAAO,KAAK;AAQX,CARD,UAAO,KAAK;IACRA,YAAYA;;IAEZA,IAAIA,OAAOA,GAAGA,OAAOA,CAACA,MAAMA,CAACA,SAASA,EAAEA,EAAEA,CAACA,CAClCA,UAAUA,CAACA,UAAUA,EAAEA,cAAQA,CAACA,CAChCA,SAASA,CAACA,UAAUA,EAAEA,cAAQA,CAACA,CAC/BA,SAASA,CAACA,WAAWA,EAAEA,eAASA,CAACA,CACjCA,OAAOA,CAACA,aAAaA,EAAEA,iBAAWA,CAACA;AAChDA,CAACA,yBAAA"}
{"version":3,"file":"Application.js","sourceRoot":"","sources":["models/TodoItem.ts","interfaces/ITodoScope.ts","interfaces/ITodoStorage.ts","directives/TodoFocus.ts","directives/TodoBlur.ts","services/TodoStorage.ts","controllers/TodoCtrl.ts","Application.ts","_all.ts"],"names":["todos","todos.TodoItem","todos.TodoItem.constructor","todos.todoFocus","todos.todoBlur","todos.TodoStorage","todos.TodoStorage.constructor","todos.TodoStorage.get","todos.TodoStorage.put","todos.TodoCtrl","todos.TodoCtrl.constructor","todos.TodoCtrl.onPath","todos.TodoCtrl.onTodos","todos.TodoCtrl.addTodo","todos.TodoCtrl.editTodo","todos.TodoCtrl.doneEditing","todos.TodoCtrl.removeTodo","todos.TodoCtrl.clearDoneTodos","todos.TodoCtrl.markAll"],"mappings":"AAAA,mCAAmC;AAEnC,IAAO,KAAK,CASX;AATD,WAAO,KAAK,EAAC,CAAC;IACVA,YAAYA,CAACA;IAEbA,IAAaA,QAAQA;QACjBC,SADSA,QAAQA,CAENA,KAAaA,EACbA,SAAkBA;YADlBC,UAAKA,GAALA,KAAKA,CAAQA;YACbA,cAASA,GAATA,SAASA,CAASA;QACrBA,CAACA;QACbD,eAACA;IAADA,CAACA,AALDD,IAKCA;IALYA,cAAQA,GAARA,QAKZA,CAAAA;AACLA,CAACA,EATM,KAAK,KAAL,KAAK,QASX;ACXD,mCAAmC;ACAnC,mCAAmC;ACAnC,mCAAmC;AAEnC,IAAO,KAAK,CAoBX;AApBD,WAAO,KAAK,EAAC,CAAC;IACbA,YAAYA,CAACA;IAKbA,AAHAA;;OAEGA;aACaA,SAASA,CAACA,QAA4BA;QACrDG,MAAMA,CAACA;YACNA,IAAIA,EAAEA,UAACA,MAAiBA,EAAEA,OAAeA,EAAEA,UAAeA;gBACzDA,MAAMA,CAACA,MAAMA,CAACA,UAAUA,CAACA,SAASA,EAAEA,UAAAA,MAASA;oBAC5CA,EAAEA,CAACA,CAACA,MAAMA,CAACA,CAACA,CAACA;wBACZA,QAAQA,CAACA,cAAMA,OAAAA,OAAOA,CAACA,CAACA,CAACA,CAACA,KAAKA,EAAE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AAWA;YACXA,aAAaA;YACbA,cAAcA;SACdA,CAACA;QA0EHA,eAACA;IAADA,CAACA,AAvFDT,IAuFCA;IAvFYA,cAAQA,GAARA,QAuFZA,CAAAA;AAEFA,CAACA,EAjGM,KAAK,KAAL,KAAK,QAiGX;ACnGD,gCAAgC;AAOhC,AALA;;;;GAIG;AACH,IAAO,KAAK,CAQX;AARD,WAAO,KAAK,EAAC,CAAC;IACVA,YAAYA,CAACA;IAEbA,IAAIA,OAAOA,GAAGA,OAAOA,CAACA,MAAMA,CAACA,SAASA,EAAEA,EAAEA,CAACA,CAClCA,UAAUA,CAACA,UAAUA,EAAEA,cAAQA,CAACA,CAChCA,SAASA,CAACA,UAAUA,EAAEA,cAAQA,CAACA,CAC/BA,SAASA,CAACA,WAAWA,EAAEA,eAASA,CAACA,CACjCA,OAAOA,CAACA,aAAaA,EAAEA,iBAAWA,CAACA,CAACA;AACjDA,CAACA,EARM,KAAK,KAAL,KAAK,QAQX"}
\ No newline at end of file
\ 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