hostabee-comment-flow
v0.2.0
Published
Commenting solution out-of-the-box in a Web Component.
Downloads
4
Maintainers
Readme
<hostabee-comment-flow>
Commenting solution out-of-the-box in a web component.
<hostabee-comment-flow></hostabee-comment-flow>
<script>
const flow = document.querySelector('hostabee-comment-flow');
// Populate the comment flow
fetch('https://YOUR_API/comments')
.then(res => res.json())
.then(json => flow.comments = json.result);
</script>
Installation
Install <hostabee-comment-flow>
:
bower install Hostabee/hostabee-comment-flow --save
Once installed, import it in your application:
<link rel="import" href="bower_components/hostabee-comment-flow/hostabee-comment-flow.html">
Running demos and tests in a browser
Fork the
hostabee-comment-flow
repository and clone it locally.When in the
hostabee-comment-flow
directory, runnpm install
and thenbower install
to install dependencies.Run
npm start
, browser will automatically open the component API documentation.You can also open demo or in-browser tests by adding demo or test to the URL, for example:
- http://127.0.0.1:3000/components/hostabee-comment-flow/demo/hostabee-comment-flow/basic.html
- http://127.0.0.1:3000/components/hostabee-comment-flow/test
Running Tests
- When in the
hostabee-comment-flow
directory, runpolymer test
Contributing
Fork it!
Create your feature branch:
git checkout -b my-new-feature
Commit your changes:
git cz
OR follow this commit guide to write the commit messages.Push to the branch:
git push origin my-new-feature
Submit a pull request.
License
Apache License 2.0