app run

overview


The $run method is called when the app is activated. The $setup method is always called after an app has been loaded, and prior to calling the $run method.

Basic Implementation



export async function $run() {
  if ((await _services.takeControl()) == false) return;
  _services.reset();
  $('#' + guid).show();
}