1.0.0 • Published 10 years ago

billy-activities v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

billy-activities

Build Status NPM version

A service that allows for the use of activities for state management in Billy Applications

Install

$ npm install billy-activities

Usage

var Application        = require('billy');
var ActivityService    = require('billy-activities');
var HomeScreenActivity = require('./activities/HomeScreenActivity.js');

var app = new Application();
app.service(ActivityService);
app.config('navigator.startup', HomeScreenActivity);

app.start();

Injectables

New dependencies that you can use after adding this service:

tagtypedescriptionnotes
navigatorNavigatorThe activity navigator interfaceUse the navigator to start and finish activities across the application

Configs

Available config properties:

configtypedescriptiondefault valuenotes
navigator.startupActivityActivity to to launch at app startupnull

Testing

$ npm test

License

MIT