Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

app.controller

Leonardo Laureti edited this page Jul 22, 2019 · 4 revisions

app.controller

Controller functions

<Object>

 

app.controller.spoof

Captures the app position using location.href

<Function>

arguments:

<Object> loc   { view, action, index }

position:

 

app.controller.history

Handles history navigation through the browser History API

<Function>

arguments:

<String> title
<String> url

position:

 

app.controller.cursor

Get or set the controller cursor,

it contains the current position in the app

<Function>

arguments:

<Object> loc

returns:

<Object> loc   { view, action, index }

position:

 

app.controller.setTitle

Set and store the document title

<Function>

arguments:

<String> title

returns:

<String>

position:

 

app.controller.getTitle

Gets the document title

<Function>

returns:

<String>

position:

 

app.controller.store

Stores data from current session, returns to callback

<Function>   // asyncronous

globals:

<Object> appe__store

arguments:

<Function> callback
<String> fn
<Object> schema
<Object> data

returns.

position:

 

app.controller.retrieve

Restores data for current session and loads file and scripts, returns to callback

<Function>   // asyncronous

globals:

<Object> appe__store

arguments:

<Function> callback
<Array> routine

returns.

position:

 

app.controller.clear

Reset the current session data

<Function>

globals:

<Object> appe__config
<Object> appe__store

returns:

<Boolean>

position:

 

Clone this wiki locally