I’m working in debug mode with AT and I’m continuously getting a warning of the kind:
[aria.templates.TemplateCtxt] Template guides.todo_mio.view.Todo
Line 44: expression is null or undefined.
Line 44 in my Todo.tpl is:
${( function() { console.log("passed"); } )()}
that I use to log what’s happening into the template. And it works btw..
Do you have any suggestion?
Thanks.
In Aria Templates, whatever is done inside a TPL file should produce some output.
The warning is to notify you that there might be an issue in your code, because
The latter is more a design issue, methods that are not related to the view should be called in other places (
$dataReady/$afterRefreshand so on)If you’re fine with methods returning undefined you can either
use
eatoremptytemplate modifier