- Notifications
You must be signed in to change notification settings - Fork6.6k
PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
License
angular-ui/bootstrap
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Due toAngular's continued adoption, our creation ofthe Angular version of this library, and the the project maintainers' moving on to other things, this project is considered feature-complete and is no longer being maintained.
We thank you for all your contributions over the years and hope you've enjoyed using this library as much as we've had developing and maintaining it. It would not have been successful without them.
- Demo
- Angular 2
- Installation
- Webpack / JSPM
- Support
- Contributing to the project
- Development, meeting minutes, roadmap and more.
Do you want to see directives in action? Visithttps://angular-ui.github.io/bootstrap/!
Are you interested in Angular 2? We are on our way! Check outng-bootstrap.
Installation is easy as UI Bootstrap has minimal dependencies - only the AngularJS and Twitter Bootstrap's CSS are required.Notes:
- Since version 0.13.0, UI Bootstrap depends onngAnimate for transitions and animations, such as the accordion, carousel, etc. Include
ngAnimatein the module dependencies for your app in order to enable animation. - UI Bootstrap depends onngTouch for swipe actions. Include
ngTouchin the module dependencies for your app in order to enable swiping.
- UI Bootstrap 1.0 and higherrequires Angular 1.4.x or higher and it has been tested with Angular 1.4.8.
- UI Bootstrap 0.14.3 is thelast version that supports Angular 1.3.x.
- UI Bootstrap 0.12.0 is thelast version that supports Angular 1.2.x.
- UI Bootstrap requires Bootstrap CSS version 3.x or higher and it has been tested with Bootstrap CSS 3.3.6.
- UI Bootstrap 0.8 is thelast version that supports Bootstrap CSS 2.3.x.
$ npm install angular-ui-bootstrap
This will install AngularJS and Bootstrap NPM packages.
$ bower install angular-bootstrap
Note: do not install 'angular-ui-bootstrap'. A separate repository -bootstrap-bower - hosts the compiled javascript file and bower.json.
To install AngularJS UI Bootstrap, run the following command in the Package Manager Console
PM> Install-Package Angular.UI.BootstrapHead over tohttps://angular-ui.github.io/bootstrap/ and hit theCustom build button to create your own custom UI Bootstrap build, just the way you like it.
After downloading dependencies (or better yet, referencing them from your favorite CDN) you need to download build version of this project. All the files and their purposes are described here:https://github.com/angular-ui/bootstrap/tree/gh-pages#build-filesDon't worry, if you are not sure which file to take, opt forui-bootstrap-tpls-[version].min.js.
When you are done downloading all the dependencies and project files the only remaining part is to add dependencies on theui.bootstrap AngularJS module:
angular.module('myModule',['ui.bootstrap']);
To use this project with webpack, follow theNPM instructions.Now, if you want to use only the accordion, you can do:
importaccordionfrom'angular-ui-bootstrap/src/accordion';angular.module('myModule',[accordion]);
You can import all the pieces you need in the same way:
importaccordionfrom'angular-ui-bootstrap/src/accordion';importdatepickerfrom'angular-ui-bootstrap/src/datepicker';angular.module('myModule',[accordion,datepicker]);
This will load all the dependencies (if any) and also the templates (if any).
Be sure to have a loader able to processcss files likecss-loader.
If you would prefer not to load your css through your JavaScript file loader/bundler, you can choose to import theindex-nocss.js file instead, which is available for the modules:
- carousel
- datepicker
- datepickerPopup
- dropdown
- modal
- popover
- position
- timepicker
- tooltip
- typeahead
The other modules, such asaccordion in the example below, do not have CSS resources to load, so you should continue to import them as normal:
importaccordionfrom'angular-ui-bootstrap/src/accordion';importtypeaheadfrom'angular-ui-bootstrap/src/typeahead/index-nocss.js';angular.module('myModule',[accordion,typeahead]);
Pre-2.0.0 does not follow a particular versioning system. 2.0.0 and onwards followssemantic versioning. All release changes can be viewed on ourchangelog.
https://github.com/angular-ui/bootstrap/wiki/FAQ
Take a moment to read ourCode of Conduct
If you're updating your application to use prefixes, please check themigration guide.
Directives from this repository are automatically tested with the following browsers:
- Chrome (stable and canary channel)
- Firefox
- IE 9 and 10
- Opera
- Safari
Modern mobile browsers should work without problems.
Need help using UI Bootstrap?
- Live help in the IRC (
#angularjschannel at thefreenodenetwork). Use thiswebchat or your own IRC client. - Ask a question inStackOverflow under theangular-ui-bootstrap tag.
Please do not create new issues in this repository to ask questions about using UI Bootstrap
Please take a look atCONTRIBUTING.md and submit your issuehere.
We are always looking for the quality contributions! Please check theCONTRIBUTING.md for the contribution guidelines.
Head over to theWiki for notes on development for UI Bootstrap, meeting minutes from the UI Bootstrap team, roadmap plans, project philosophy and more.
About
PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.