public TodoCtrl(Scope _scope, Location _location, todoStorage todoStorage, filterFilter filterFilter)
      {
	      this.Storage = todoStorage;
         this.filter = filterFilter;         
         this.location = _location;

         todos = Storage.get();      

	      newTodo = "";
	      editedTodo = null;

         _scope.Watch<object>(()=>todos, update, true);

	      if(location.Path == "") location.Path = "/";
	      	      
         _scope.Watch<string>(()=>location.Path, pathchanged);         
      }            
        public TodoCtrl(Scope _scope, Location _location, todoStorage todoStorage, filterFilter filterFilter)
        {
            this.Storage  = todoStorage;
            this.filter   = filterFilter;
            this.location = _location;

            todos = Storage.get();

            newTodo    = "";
            editedTodo = null;

            _scope.Watch <object>(() => todos, update, true);

            if (location.Path == "")
            {
                location.Path = "/";
            }

            _scope.Watch <string>(() => location.Path, pathchanged);
        }