4.0.2 • Published 7 years ago

ovh-ngstrap v4.0.2

Weekly downloads
140
License
MIT
Repository
github
Last release
7 years ago

AngularStrap - AngularJS directives for Bootstrap

githubbanner

Maintenance Chat on gitter Build Status

NPM

This is a "fork" of ngStrap. It has been created to avoid compatibility issues with angular-ui and will be deleted when ngStrap will be merged with it's own fix.

IMPORTANT NOTE : version 3.x.x of ovh-ngStrap is now a fork of ngStrap version 2.3.2 which broke the calculation of the positioning and add some options. Be careful when updating your bower project with this version. See in the html infrastructure file of /cloud for an example.

Note : There is only popover and it's dependency (tooltip) that there have been included in ovh-ngStrap.

For displaying the content of an html file in a beautiful popover, simply add the data-ovh-popover and the data-content-template attributes to your dom element.

<button type="button" data-ovh-popover data-content-template="content.html">Click me if you want to see content of content.html in a beautifull popover</button>

See options of mgcrea.ngStrap.popover for all possible options.

Installation

bower install ovh-ngstrap --save

Configuration

  1. Include ovh-ngstrap.js in your app:

    <script src="bower_components/ovh-ngStrap/dist/ovh-ngstrap.js"></script>

  2. Add ovh-ngStrap as a new module dependency in your angular app.

    var myapp = angular.module('myapp', ['ovh-ngStrap']);

Get the sources

    git clone https://github.com/ovh-ux/ovh-ngstrap.git
    cd ovh-ngstrap
    npm install
    bower install

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/ovh-ngstrap/blob/master/LICENSE