k-redirect

a simple component for redirect page.


Keywords
redirect, page, redirect-page, polymer, web-components
License
MIT
Install
bower install k-redirect

Documentation

bower version open issues npm Published on webcomponents.org

<k-redirect>

a simple component for redirect page.

<k-redirect mode="off" to="https://github.com/k4ng/k-redirect"></k-redirect>
<p>
    Remove property <code>mode="off"</code> or change value property from OFF to ON. 
    Result, the component will automatically redirect the page to 
    <code>https://github.com/k4ng/k-redirect</code> in 10 milliseconds (0.01 sec)
</p>

How to install

bower

bower install --save k-redirect

npm

npm install k-redirect

Properties

Data Attribute Description Default Value
to to set the destination URL http://www.kang-cahya.com
time to set speed redirect. Unit within a millisecond. 10 milliseconds
mode to set redirect mode "ON" or "OFF" ON

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License