apeman-service-view
Service for views
Installation
$ npm install apeman-service-view --save
Usage
#!/usr/bin/env node 'use strict' const ApViewService = const createStore = const reducer = const co =
API
apeman-service-view@1.0.2
Service for views
- Functions
- ApViewService Class
Functions
ApViewService
create(args) -> Create the service instance
Param | Type | Description |
---|---|---|
args | * |
ApViewService Class
Service
new ApViewService(store, options)
Constructor of ApViewService class
Param | Type | Description |
---|---|---|
store | Object | Redux store |
options | Object | Optional settings |
Promise
service.pushView(stackName, viewName, viewParams, options) -> Push a view into a stack
Param | Type | Description |
---|---|---|
stackName | string | Name of stack |
viewName | string | Name of view |
viewParams | Object | Params to pass |
options | Object | Optional settings |
Promise
service.popView(stackName) -> Pop view from a stack
Param | Type | Description |
---|---|---|
stackName | string | Name of stack |
Promise
service.popAllViews(stackName) -> Pop all views from a stack
Param | Type | Description |
---|---|---|
stackName | string | Name of stack |
License
This software is released under the MIT License.