apeman-service-view

2.0.0 • Public • Published

apeman-service-view

Build Status Code Climate Code Coverage npm Version JS Standard

Service for views

Installation

$ npm install apeman-service-view --save

Usage

#!/usr/bin/env node
 
'use strict'
 
const { ApViewService } = require('apeman-service-view')
const { createStore } = require('redux')
const { reducer } = require('apeman-service-base')
const co = require('co')
 
co(function * () {
  let store = createStore(reducer)
  let service = new ApViewService(store)
 
 
}).catch((err) => console.error(err))

API

apeman-service-view@1.0.2

Service for views

Functions

create(args) -> ApViewService

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

service.pushView(stackName, viewName, viewParams, options) -> Promise

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

service.popView(stackName) -> Promise

Pop view from a stack

Param Type Description
stackName string Name of stack

service.popAllViews(stackName) -> Promise

Pop all views from a stack

Param Type Description
stackName string Name of stack

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i apeman-service-view

Weekly Downloads

4

Version

2.0.0

License

MIT

Last publish

Collaborators

  • okunishinishi