Element used to show battery status using Battery API.
Install simply by executing:
bower i simple-battery-component -S
command. Bower is required and explanation how to install bower can be found in Dependencies
part of this Readme.md file.
In order to use this element first add refrence to the simple-battery-status.html. Then just use the element
<simple-battery-status detect></simple-battery-status>
anywhere in your page. Also take a look in demo/index.html file for more examples.
Element dependencies are managed via Bower. You can install that via:
npm install -g bower
Then, go ahead and download the element's dependencies:
bower install
If you wish to work on this element in isolation, we recommend that you use Polyserve to keep your element's bower dependencies in line. You can install it via:
npm install -g polyserve
And you can run it via:
polyserve
Once running, you can preview element at
http://localhost:8080/components/simple-battery-status/
.