ovh-angular-browser-alert

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (49)

    Package Sidebar

    Install

    npm i ovh-angular-browser-alert

    Weekly Downloads

    0

    Version

    1.0.0

    License

    BSD-3-Clause

    Unpacked Size

    1.03 MB

    Total Files

    40

    Last publish

    Collaborators

    • bnjjj
    • ovh
    • ovh-ux-cds