Methods
-
after(fn)
-
Parameters:
Name Type Description fn
function - Source:
Returns:
- Type
- void
-
afterEach(fn)
-
Registers a post middleware function
Parameters:
Name Type Description fn
function - Source:
Returns:
- Type
- void
-
before(fn)
-
Parameters:
Name Type Description fn
function - Source:
Returns:
- Type
- void
-
beforeEach(fn)
-
Registers a pre middle function
Parameters:
Name Type Description fn
function - Source:
Returns:
- Type
- void
-
init(config)
-
Loads rotes config
Parameters:
Name Type Description config
Array - Source:
Returns:
- Type
- void
-
navigate(path, _meta)
-
public method which attempts to load the given path
Parameters:
Name Type Description path
String _meta
Object - Source:
Returns:
- Type
- Promise