Inspector webcomponent based on react-inspector
npm: npm install inspector-component --save-dev
bower: bower install inspector-component --save-dev
Only for ES6 supporting browsers
<script src="bower_components/inspector-components/dist/inspector-component.js"></script>
<inspector-component data='["56dcf573b09c217d39fd7621", "Hello World"]'></inspector-component>
<inspector-component data='{"_id":"56dcf573b09c217d39fd7621", "name":"Hello World"}'></inspector-component>
<div>
One: <inspector-component data='Hello World'></inspector-component><br/>
</div>
<div>
Two: <inspector-component data='["56dcf573b09c217d39fd7621", "Hello World"]'></inspector-component><br/>
</div>
<div>
Three: <inspector-component data='{"_id":"56dcf573b09c217d39fd7621", "name":"Hello World"}'></inspector-component><br/>
</div>
<script>
var i = 0;
var interval = setInterval(function() {
document.querySelector('inspector-component').log({log: i++});
}, 2000);
setTimeout(function() {
clearInterval(interval);
}, 2000*60)
</script>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- 1.0.0: Refactored, breaking changes. Now only usable in ES6 enabled browsers
- 0.1.2: Added Demo
- 0.1.1: Fixed for Bower
- 0.1.0: Initial Version