ovh-angular-browser-alert
v1.0.0
Published
Angular component to display an alert when your browser isn't supported
Downloads
3
Readme
ovh-angular-browser-alert
Angular component to display an alert when your browser isn't supported
Getting Started
Install dependencies :
$ yarn install
Test :
$ grunt test
Build :
$ grunt
Installation
Libraries setup :
<script src="angular.js"></script>
<script src="dist/ovh-angular-browser-alert.min.js"></script>
Usage
Add new translations (for example) :
<translation id="browser_alert_not_supported">Your browser is not supported and may contain security vulnerabilities.</translation>
<translation id="browser_alert_deprecated">Your browser is not up to date and may contain security or compatibility vulnerabilities.</translation>
<translation id="browser_alert_update">We recommend you to<a href="http://outdatedbrowser.com/fr" class="alert-link" target="_blank">update your browser</a> in order to benefit a better experience.</translation>
<translation id="browser_alert_close">Close</translation>
Finally, you can use the component in your html code :
<ovh-angular-browser-alert />
Contributing
You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !
Have a look in CONTRIBUTING.md
Run the tests
$ npm test
Related links
- Contribute: https://github.com/ovh-ux/ovh-angular-browser-alert/blob/master/CONTRIBUTING.md
- Report bugs: https://github.com/ovh-ux/ovh-angular-browser-alert/issues
- Get latest version: https://github.com/ovh-ux/ovh-angular-browser-alert
License
See https://github.com/ovh-ux/ovh-angular-browser-alert/blob/master/LICENSE