I am new with coldbox, I try the following simple code, but I just a error
component{
property name="contactService" inject="ContactService";
function index( event, rc, prc ){
prc.aContacts = contactService.getAll();
event.setView( "contacts/index" );
}
}
the code “prc.aContacts = contactService.getAll();” has the error as "variable [CONTACTSERVICE] doesn’t exist ",but it should exist in code.
it seems WireBox has the error. Do I have to change config file to fix this? Thanks