apeman-service-view
Service for views
Last updated 8 months ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-service-view 
SYNC missed versions from official npm registry.

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

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (6)
Dev Dependencies (15)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |