The root object is expanded with the following additional service properties and methods:
readonly $ready: boolean
true
if no server requests are currently being made. Can be used to
disable/enable interface elements when executing server commands.
readonly $template: Template
Reference to the template object (Template).
$defer(handler:()=>any): void
Executes a (handler) function after the end of the current event loop.