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
cca0ef2f
Commit
cca0ef2f
authored
Jul 03, 2012
by
Igor Minar
Committed by
Sindre Sorhus
Jul 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close GH-205: Angularjs fixes2. Fixes #191
parent
5848399f
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
36 additions
and
8 deletions
+36
-8
architecture-examples/angularjs-perf/index.html
architecture-examples/angularjs-perf/index.html
+6
-1
architecture-examples/angularjs-perf/js/app.js
architecture-examples/angularjs-perf/js/app.js
+2
-0
architecture-examples/angularjs-perf/js/controllers/todoCtrl.js
...ecture-examples/angularjs-perf/js/controllers/todoCtrl.js
+3
-2
architecture-examples/angularjs-perf/js/directives/todoBlur.js
...tecture-examples/angularjs-perf/js/directives/todoBlur.js
+2
-0
architecture-examples/angularjs-perf/js/directives/todoFocus.js
...ecture-examples/angularjs-perf/js/directives/todoFocus.js
+2
-0
architecture-examples/angularjs-perf/js/services/todoStorage.js
...ecture-examples/angularjs-perf/js/services/todoStorage.js
+2
-0
architecture-examples/angularjs/index.html
architecture-examples/angularjs/index.html
+6
-1
architecture-examples/angularjs/js/app.js
architecture-examples/angularjs/js/app.js
+2
-0
architecture-examples/angularjs/js/controllers/todoCtrl.js
architecture-examples/angularjs/js/controllers/todoCtrl.js
+5
-4
architecture-examples/angularjs/js/directives/todoBlur.js
architecture-examples/angularjs/js/directives/todoBlur.js
+2
-0
architecture-examples/angularjs/js/directives/todoFocus.js
architecture-examples/angularjs/js/directives/todoFocus.js
+2
-0
architecture-examples/angularjs/js/services/todoStorage.js
architecture-examples/angularjs/js/services/todoStorage.js
+2
-0
No files found.
architecture-examples/angularjs-perf/index.html
View file @
cca0ef2f
...
...
@@ -55,7 +55,12 @@
</section>
<footer
id=
"info"
>
<p>
Double-click to edit a todo.
</p>
<p>
Credits:
<a
href=
"http://twitter.com/cburgdorf"
>
Christoph Burgdorf
</a>
,
<a
href=
"http://ericbidelman.com"
>
Eric Bidelman
</a>
,
<a
href=
"http://jacobmumm.com"
>
Jacob Mumm
</a></p>
<p>
Credits:
<a
href=
"http://twitter.com/cburgdorf"
>
Christoph Burgdorf
</a>
,
<a
href=
"http://ericbidelman.com"
>
Eric Bidelman
</a>
,
<a
href=
"http://jacobmumm.com"
>
Jacob Mumm
</a>
and
<a
href=
"http://igorminar.com"
>
Igor Minar
</a>
</p>
</footer>
<script
src=
"../../assets/base.js"
></script>
<script
src=
"js/libs/angular/angular.min.js"
></script>
...
...
architecture-examples/angularjs-perf/js/app.js
View file @
cca0ef2f
'
use strict
'
;
/**
* The main TodoMVC app module.
*
...
...
architecture-examples/angularjs-perf/js/controllers/todoCtrl.js
View file @
cca0ef2f
'
use strict
'
;
/**
* The main controller for the app. The controller:
* - retrieves and persist the model via the todoStorage service
* -
* exposes the model to the template and
* - exposes the model to the template and provides event handlers
*/
todomvc
.
controller
(
'
TodoCtrl
'
,
function
TodoCtrl
(
$scope
,
$location
,
todoStorage
,
filterFilter
)
{
var
todos
=
$scope
.
todos
=
todoStorage
.
get
();
...
...
architecture-examples/angularjs-perf/js/directives/todoBlur.js
View file @
cca0ef2f
'
use strict
'
;
/**
* Directive that executes an expression when the element it is applied to loses focus.
*/
...
...
architecture-examples/angularjs-perf/js/directives/todoFocus.js
View file @
cca0ef2f
'
use strict
'
;
/**
* Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
*/
...
...
architecture-examples/angularjs-perf/js/services/todoStorage.js
View file @
cca0ef2f
'
use strict
'
;
/**
* Services that persists and retrieves TODOs from localStorage.
*/
...
...
architecture-examples/angularjs/index.html
View file @
cca0ef2f
...
...
@@ -55,7 +55,12 @@
</section>
<footer
id=
"info"
>
<p>
Double-click to edit a todo.
</p>
<p>
Credits:
<a
href=
"http://twitter.com/cburgdorf"
>
Christoph Burgdorf
</a>
,
<a
href=
"http://ericbidelman.com"
>
Eric Bidelman
</a>
,
<a
href=
"http://jacobmumm.com"
>
Jacob Mumm
</a></p>
<p>
Credits:
<a
href=
"http://twitter.com/cburgdorf"
>
Christoph Burgdorf
</a>
,
<a
href=
"http://ericbidelman.com"
>
Eric Bidelman
</a>
,
<a
href=
"http://jacobmumm.com"
>
Jacob Mumm
</a>
and
<a
href=
"http://igorminar.com"
>
Igor Minar
</a>
</p>
</footer>
<script
src=
"../../assets/base.js"
></script>
<script
src=
"js/libs/angular/angular.min.js"
></script>
...
...
architecture-examples/angularjs/js/app.js
View file @
cca0ef2f
'
use strict
'
;
/**
* The main TodoMVC app module.
*
...
...
architecture-examples/angularjs/js/controllers/todoCtrl.js
View file @
cca0ef2f
'
use strict
'
;
/**
* The main controller for the app. The controller:
* - retrieves and persist the model via the todoStorage service
* -
* exposes the model to the template and
* - exposes the model to the template and provides event handlers
*/
todomvc
.
controller
(
'
TodoCtrl
'
,
function
TodoCtrl
(
$scope
,
$location
,
todoStorage
,
filterFilter
)
{
var
todos
=
$scope
.
todos
=
todoStorage
.
get
();
...
...
@@ -33,11 +34,11 @@ todomvc.controller( 'TodoCtrl', function TodoCtrl( $scope, $location, todoStorag
}
todos
.
push
({
title
:
this
.
newTodo
,
title
:
$scope
.
newTodo
,
completed
:
false
});
this
.
newTodo
=
''
;
$scope
.
newTodo
=
''
;
};
...
...
architecture-examples/angularjs/js/directives/todoBlur.js
View file @
cca0ef2f
'
use strict
'
;
/**
* Directive that executes an expression when the element it is applied to loses focus.
*/
...
...
architecture-examples/angularjs/js/directives/todoFocus.js
View file @
cca0ef2f
'
use strict
'
;
/**
* Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
*/
...
...
architecture-examples/angularjs/js/services/todoStorage.js
View file @
cca0ef2f
'
use strict
'
;
/**
* Services that persists and retrieves TODOs from localStorage.
*/
...
...
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