Install the component using NPM:
$ npm install chuck-norris-fact-element --save
Import polyfill:<!-- load webcomponents bundle, which includes all the necessary polyfills -->
Import custom element:
Start using it!
Random chuck norris fact:
categorized chuck norris fact:
Options: animal, career, celebrity, dev, explicit, fashion, food, history, money, movie, music, political, religion, science, sport, travel,
Description: Used to retrieve categorized chuck norris facts.
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
$ npm install -g serve
Start development server and open
http://localhost:5000/. poly$ serve