你想看到指示行动吗?访问http://angular-ui.github.io/bootstrap/!
你在角2感兴趣吗?我们对我们的方式!退房伍举。
安装简单界面引导具有最小的依赖只有AngularJS和推特Bootstrap的CSS是必需的。笔记
- 自从版本0.1~3.0,UI引导取决于nganimate对于过渡和动画,如旋转木马,包括手风琴,等。
nganimate为你的应用程序以使动画模块依赖。 - UI引导取决于ngtouch对于滑动的动作。包括
ngtouch为你的应用程序以使刷卡模块依赖。
- UI Bootstrap 1和更高要求角1.4。x或更高,它已与角1.4.8测试。
- 引导0.14.3是UI最后的版本支持角1.3。X。
- 引导0.12.0是UI最后的版本支持角1.2。X。
- UI引导需要引导的CSS版本3。x或更高,它已与Bootstrap CSS 3.3.6测试。
- 0.8是用户界面引导最后的版本支持Bootstrap CSS 2.3。X。
NPM安装角UI引导美元
这将安装AngularJS和Bootstrap NPM包。
鲍尔美元安装角的引导
注意:不要安装“角UI引导”。一个分离的库—自举的凉亭东道主编译JavaScript文件和bower.json。
安装AngularJS UI引导,运行下面的软件包管理器控制台命令
颗粒物>安装包angular.ui.bootstrap头向http://angular-ui.github.io/bootstrap/和打自定义生成按钮来创建您自己的自定义用户界面引导建立,只是你喜欢的方式。
下载后的依赖(或者更好的是,引用他们从您最喜爱的CDN)你需要下载这个版本的构建。所有的文件,其目的是描述在这里:http:/ / GitHub。COM /角UI /引导/树/ GH页#构建文件别担心,如果你不确定哪个文件,选择UI引导企业- [版版]。。
当您完成下载所有依赖关系和项目文件,剩下的部分是在添加依赖关系ui.bootstrapAngularJS模块:
角。模块('mymodule',['ui.bootstrap']);
使用该项目遵循WebPACK,新公共管理 指令。现在,如果你想使用的手风琴,你可以:
进口 手风琴 从 '角UI引导/ SRC /手风琴'角。模块('mymodule'[手风琴]);
你可以导入所有的作品以同样的方式,你需要:
进口 手风琴 从 '角UI引导/ SRC /手风琴';进口 DatePicker 从 '角UI引导/ SRC / DatePicker'角。模块('mymodule'accordion DataPicker的[,]);
这将加载所有的依赖关系(如果有)和模板(如果有)。
一定要有一个程序能够处理CSS文件一样CSS的装载机。
如果你不想通过你的JavaScript文件装载机/捆扎机负载你的CSS,你可以选择进口的index-nocss.js文件,以供模块:
- 旋转木马
- DatePicker
- datepickerpopup
- 下拉
- 弹出
- 位置
- 时间选择
- 工具提示
- typeahead
其他模块,如手风琴在下面的例子中,没有CSS资源加载,所以你应该继续他们的正常进口:
进口 手风琴 从 '角UI引导/ SRC /手风琴';进口 typeahead 从 '角UI引导/ SRC / typeahead / index-nocss.js'角。模块('mymodule'accordion DataPicker的[,]);
https://github.com/angular-ui/bootstrap/wiki/faq
花一点时间来阅读我们的行为准则
如果你更新你的应用程序使用的前缀,请检查迁移指南。
指令从这个库自动测试以下浏览器:
- 铬(稳定和金丝雀)
- 火狐
- 在9和10
- 歌剧
- Safari
现代移动浏览器应该没有问题。
需要帮助的使用界面引导?
请不要在这个库中创建新的问题来问关于使用UI的引导问题
请看一看contributing.md提交您的问题在这里。
我们一直在寻找质量的贡献!请检查contributing.md的贡献的准则。
去维基笔记在UI引导发展,会议纪要从UI引导团队,路线图计划,工程哲学和更多。
### EN ### UI Bootstrap - [AngularJS](http://angularjs.org/) directives specific to [Bootstrap](http://getbootstrap.com)- Demo
- Angular 2
- Installation
- Webpack
- Support
- Contributing to the project
- Development, meeting minutes, roadmap and more.
Do you want to see directives in action? Visit http://angular-ui.github.io/bootstrap/!
Are you interested in Angular 2? We are on our way! Check out ng-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 on ngAnimate 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 on ngTouch for swipe actions. Include
ngTouchin the module dependencies for your app in order to enable swiping.
- UI Bootstrap 1.0 and higher requires Angular 1.4.x or higher and it has been tested with Angular 1.4.8.
- UI Bootstrap 0.14.3 is the last version that supports Angular 1.3.x.
- UI Bootstrap 0.12.0 is the last 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 the last version that supports Bootstrap CSS 2.3.x.
$ npm install angular-ui-bootstrapThis will install AngularJS and Bootstrap NPM packages.
$ bower install angular-bootstrapNote: 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 to http://angular-ui.github.io/bootstrap/ and hit the Custom 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-files
Don't worry, if you are not sure which file to take, opt for ui-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 the ui.bootstrap AngularJS module:
angular.module('myModule', ['ui.bootstrap']);To use this project with webpack, follow the NPM instructions. Now, if you want to use only the accordion, you can do:
import accordion from 'angular-ui-bootstrap/src/accordion';
angular.module('myModule', [accordion]);You can import all the pieces you need in the same way:
import accordion from 'angular-ui-bootstrap/src/accordion';
import datepicker from '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 process css files like css-loader.
If you would prefer not to load your css through your JavaScript file loader/bundler, you can choose to import the index-nocss.js file instead, which is available for the modules:
- carousel
- datepicker
- datepickerPopup
- dropdown
- popover
- position
- timepicker
- tooltip
- typeahead
The other modules, such as accordion in the example below, do not have CSS resources to load, so you should continue to import them as normal:
import accordion from 'angular-ui-bootstrap/src/accordion';
import typeahead from 'angular-ui-bootstrap/src/typeahead/index-nocss.js';
angular.module('myModule', [accordion, datepicker]);https://github.com/angular-ui/bootstrap/wiki/FAQ
Take a moment to read our Code of Conduct
If you're updating your application to use prefixes, please check the migration 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 this webchat or your own IRC client. - Ask a question in StackOverflow under the angular-ui-bootstrap tag.
Please do not create new issues in this repository to ask questions about using UI Bootstrap
Please take a look at CONTRIBUTING.md and submit your issue here.
We are always looking for the quality contributions! Please check the CONTRIBUTING.md for the contribution guidelines.
Head over to the Wiki for notes on development for UI Bootstrap, meeting minutes from the UI Bootstrap team, roadmap plans, project philosophy and more.