sgbus-widget-vue
v1.0.6
Published
Vue component to include Singapore bus arrival data.
Maintainers
Readme
SGBusWidget-Vue
Vue component to include bus arrival data for Singapore's public buses on your site. Powered by arrivelah - https://github.com/cheeaun/arrivelah
Based on gohjy/sgbus-widget
How to use
- Install the package:
npm install sgbus-widget-vue - Import the component:
import SgBusWidget from 'sgbus-widget-vue' - Pass an array as the
stopsprop:
<SgBusWidget :stops="[
{
name: 'Jurong East',
code: 28009,
svcs: ['197','51','49','41','143','993']
}
{
name: 'Terminal 4'
code: 95209,
svcs: ['110', '24']
}
]"/>Note that name does not have to match the stop name.
