We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd53688 commit d5a0830Copy full SHA for d5a0830
examples/todomvc/js/app.js
@@ -5,7 +5,7 @@
5
'use strict';
6
7
var filters = {
8
- all: function (todo) {
+ all: function () {
9
return true;
10
},
11
active: function (todo) {
@@ -16,7 +16,7 @@
16
}
17
};
18
19
- exports.app = new Vue({
+ var app = exports.app = new Vue({
20
21
// the root element that will be compiled
22
el: '#todoapp',
examples/todomvc/js/routes.js
@@ -12,6 +12,13 @@
12
});
13
14
15
+ router.configure({
+ notfound: function () {
+ window.location.hash = '';
+ app.filter = 'all';
+ }
+ });
+
router.init();
23
24
})(app, Router);
0 commit comments