void function save(event) output=false{
var rc = event.getCollection();
rc.task = TaskService.getTask(event.getValue("taskID", ""));
populateModel(rc.task);
taskService.save(rc.task);
flash.put("message","Task saved sucessfully!");
setNextEvent('tasks');
}
}
However, when I call the "task.save", i am getting the error message
taskService is undefined. Im wondering if there is some settings i
need to change to allow the injection of the model object, or if I am
doing something wrong.
Please check the compatibility guide. 2.6 version is not compatible with 3.0 as we are moving forward. Changes will be made,.
Inject is new for 3.0 ONLY and it will be the new standard instead of hijacking the “type” attribute like we did in 2.6.4. We will also deprecate _wireme in favor of inject also.