角 -材料设计主题之ui.bootstrap

zh-CN 机器翻译中文,请参阅下面EN原版理解 用户界面引导—AngularJS指令的具体自举

快速链接 演示 角2 安装 新公共管理 鲍尔 NuGet 自定义 手动 WebPACK 支持 常见问题 行为准则 前缀迁移指南 支持的浏览器 需要帮助 发现了一个bug? 有助于项目 发展,会议纪要,路线图和更多。 演示

你想看到指示行动吗?访问http://angular-ui.github.io/bootstrap/!

角2

你在角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。

安装NuGet

安装AngularJS UI引导,运行下面的软件包管理器控制台命令

颗粒物>安装包angular.ui.bootstrap 自定义生成

头向http://angular-ui.github.io/bootstrap/和打自定义生成按钮来创建您自己的自定义用户界面引导建立,只是你喜欢的方式。

手动下载

下载后的依赖(或者更好的是,引用他们从您最喜爱的CDN)你需要下载这个版本的构建。所有的文件,其目的是描述在这里:http:/ / GitHub。COM /角UI /引导/树/ GH页#构建文件别担心,如果你不确定哪个文件,选择UI引导企业- [版版]。

添加依赖你的项目

当您完成下载所有依赖关系和项目文件,剩下的部分是在添加依赖关系ui.bootstrapAngularJS模块:

角。模块('mymodule',['ui.bootstrap']); jspm WebPACK /

使用该项目遵循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

现代移动浏览器应该没有问题。

需要帮助

需要帮助的使用界面引导?

生活帮在IRC(# angularjs在频道其中网络)。使用本聊天或你自己的IRC客户端。 问一个问题计算器下角的界面引导标签

请不要在这个库中创建新的问题来问关于使用UI的引导问题

发现了一个bug?

请看一看contributing.md提交您的问题在这里。

有助于项目

我们一直在寻找质量的贡献!请检查contributing.md的贡献的准则。

发展,会议纪要,路线图和更多。

去维基笔记在UI引导发展,会议纪要从UI引导团队,路线图计划,工程哲学和更多。

### EN ### UI Bootstrap - [AngularJS](http://angularjs.org/) directives specific to [Bootstrap](http://getbootstrap.com)

Quick links Demo Angular 2 Installation NPM Bower NuGet Custom Manual Webpack Support FAQ Code of Conduct PREFIX MIGRATION GUIDE Supported browsers Need help? Found a bug? Contributing to the project Development, meeting minutes, roadmap and more. Demo

Do you want to see directives in action? Visit http://angular-ui.github.io/bootstrap/!

Angular 2

Are you interested in Angular 2? We are on our way! Check out ng-bootstrap.

Installation

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 ngAnimate in the module dependencies for your app in order to enable animation. UI Bootstrap depends on ngTouch for swipe actions. Include ngTouch in the module dependencies for your app in order to enable swiping. Angular Requirements 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. Bootstrap Requirements 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. Install with NPM

$ npm install angular-ui-bootstrap

This will install AngularJS and Bootstrap NPM packages.

Install with Bower

$ bower install angular-bootstrap

Note: do not install 'angular-ui-bootstrap'. A separate repository - bootstrap-bower - hosts the compiled javascript file and bower.json.

Install with NuGet

To install AngularJS UI Bootstrap, run the following command in the Package Manager Console

PM> Install-Package Angular.UI.Bootstrap Custom build

Head 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.

Manual download

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.

Adding dependency to your project

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']); Webpack / JSPM

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]); Support FAQ

https://github.com/angular-ui/bootstrap/wiki/FAQ

Code of Conduct

Take a moment to read our Code of Conduct

PREFIX MIGRATION GUIDE

If you're updating your application to use prefixes, please check the migration guide.

Supported browsers

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?

Need help using UI Bootstrap?

Live help in the IRC (#angularjs channel at the freenode network). 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

Found a bug?

Please take a look at CONTRIBUTING.md and submit your issue here.

Contributing to the project

We are always looking for the quality contributions! Please check the CONTRIBUTING.md for the contribution guidelines.

Development, meeting minutes, roadmap and more.

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.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。