1.0.0 • Published 6 years ago

ovh-angular-browser-alert v1.0.0

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
6 years ago

OVH component

NPM

Maintenance Chat on gitter

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

License

See https://github.com/ovh-ux/ovh-angular-browser-alert/blob/master/LICENSE