Commit 60a3c1c4 authored by Jacob Mumm's avatar Jacob Mumm

fixed refresh for asynchronous events

parent e1676f6d
......@@ -72,7 +72,8 @@ App.Controllers.TodoController = function (persistencejs) {
self.loadTodos = function(){
persistencejs.fetchAll(self);
}
self.refresh = function(){ self.$root.$eval(); }
self.refresh = function(){ self.$apply(); }
self.loadTodos();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment