mambo-core
v0.0.3
Published
Mambo's business rules.
Downloads
7
Readme
mambo-core
Mambo's business rules.
This is the domain of MAMBO. All global app logic should be placed here.
Services
Upgrade
Service to execute upgrade processes.
import mambo from 'mambo-core'
const HandlerBlockIfHigher = mambo.upgrade.handler.BlockIfHigher
var opts = {
appName: 'MyAppName'
upgradeLink: 'http://app.com/download/2.0.3'
}
var handler = HandlerBlockIfHigher( '1.0.15', '2.0.3', opts )
Important notes
Messaging service
Some services may need to show messages to user.
To allow messaging, you must define a service that implements MesssagingUiInterface
from syn-core
.
import { Messaging } from 'syn-core'
import { messages } from 'syn-ui'
Messaging.getInstance().setUIService(messages)