loadFile

fun loadFile(filePath: String, options: LoadFileOptions = definedExternally): Promise<Void>(source)

the promise will resolve when the page has finished loading (see did-finish-load), and rejects if the page fails to load (see did-fail-load).

Loads the given file in the window, filePath should be a path to an HTML file relative to the root of your application. For instance an app structure like this:

Would require code like this