@mamba/pos
Simulator
For mamba apps
to be able to run on a common browser, you must simulate the real POS
environment.
- Just the
import
is enough to create the simulated environment.
import '@mamba/pos/simulator/index.js';
- However, you can also initialize the
digital POS
component, which will be the container for your mamba app
when running on a browser. A store
must be passed to the component.
import '@mamba/pos/simulator/index.js';
import POS from '@mamba/pos/simulator/view.js';
import store from './store.js';
new POS({ target: document.body, store });
It's obligatory to include the entry file which starts the simulator before the app.