AngularStrap - AngularJS directives for Bootstrap
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.
Click me if you want to see content of content.html in a beautifull popover
See options of mgcrea.ngStrap.popover for all possible options.
Installation
bower install ovh-ngstrap --save
Configuration
- Include
ovh-ngstrap.js
in your app:
<script src="bower_components/ovh-ngStrap/dist/ovh-ngstrap.js"></script>
- 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
- Contribute: https://github.com/ovh-ux/ovh-ngstrap/blob/master/CONTRIBUTING.md
- Report bugs: https://github.com/ovh-ux/ovh-ngstrap/issues
- Get latest version: https://github.com/ovh-ux/ovh-ngstrap