ng bootstrap css,ng-bootstrap: NG Bootstrap 是基于 Angular(非 Angular.js)开发的 Bootstrap CSS 框架的指令集...

2023-10-29

NG Bootstrap - Angular directives specific to Bootstrap 4

%40ng-bootstrap%2Fng-bootstrap.svg

ng-bootstrap.svg?branch=master

dev-status.svg?branch=master

pkozlowski.svg

Welcome to the Angular version of the Angular UI Bootstrap library.

This library is being built from scratch by the ui-bootstrap team.

We are using TypeScript and targeting the Bootstrap 4 CSS framework.

As with Bootstrap 4, this library is a work in progress. Please check out our list of

issues to see all the things we are implementing.

Feel free to make comments there.

Table of Contents

Demo

View all the directives in action at https://ng-bootstrap.github.io

Dependencies

Angular (tested with 4.0.3)

Bootstrap 4 (tested with 4.0.0-beta)

Installation

After installing the above dependencies, install ng-bootstrap via:

npm install --save @ng-bootstrap/ng-bootstrap

Once installed you need to import our main module:

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

The only remaining part is to list the imported module in your application module. The exact method will be slightly

different for the root (top-level) module for which you should end up with the code similar to (notice NgbModule.forRoot()):

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

@NgModule({

declarations: [AppComponent, ...],

imports: [NgbModule.forRoot(), ...],

bootstrap: [AppComponent]

})

export class AppModule {

}

Other modules in your application can simply import NgbModule:

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

@NgModule({

declarations: [OtherComponent, ...],

imports: [NgbModule, ...],

})

export class OtherModule {

}

SystemJS

If you are using SystemJS, you should also adjust your configuration to point to the UMD bundle.

In your systemjs config file, map needs to tell the System loader where to look for ng-bootstrap:

map: {

'@ng-bootstrap/ng-bootstrap': 'node_modules/@ng-bootstrap/ng-bootstrap/bundles/ng-bootstrap.js',

}

Supported browsers

We support the same browsers and versions supported by both Bootstrap 4 and Angular, whichever is more restrictive.

See this for up-to-date Angular browser support.

Chrome (45+)

Firefox (40+)

IE (10+)

Edge (20+)

Safari (7+)

Also check Bootstrap 4's notes on browsers support.

Contributing to the project

Please check the CONTRIBUTING.md doc for contribution guidelines.

Getting Help

Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on StackOverflow where maintainers are looking at questions tagged with ng-bootstrap.

StackOverflow is a much better place to ask questions since:

there are hundreds of people willing to help on StackOverflow

questions and answers stay available for public viewing so your question / answer might help someone else

SO voting system assures that the best answers are prominently visible.

To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.

You think you've found a bug?

Oh, we are ashamed and want to fix it ASAP! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a minimal reproduction scenario using http://plnkr.co. Having a live, reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like:

version of Angular used

version of this library that you are using

3rd-party libraries used, if any

and most importantly - a use-case that fails

A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.

The best part is that you do not need to create plunks from scratch - you can fork one from our demo page.

We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.

Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using http://plnkr.co, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.

Code of Conduct

Please take a moment and read our Code of Conduct

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ng bootstrap css,ng-bootstrap: NG Bootstrap 是基于 Angular(非 Angular.js)开发的 Bootstrap CSS 框架的指令集... 的相关文章

随机推荐

  • 【图论算法】二分图:染色法与匈牙利算法

    AcWing 860 染色法判定二分图 AcWing 860 染色法判定二分图 二分图 二分图就是可以把所有点划分到两边集合中去 使得所有的边在两个集合外且在两个集合之间 集合内部没有边的图 二分图的性质 当且仅当图中不含有奇数环 奇数环
  • java登录界面(1/2)(准备工作)(每个层都将的详细,拿来就用)

    目录 1 项目模块 依赖准备 2 数据库数据准备 3 前端界面准备 首先要知道登录的逻辑是什么 首先由用户在前端form表格输入账号和密码 然后由前端发送ajax请求给后端 然后后端拿到数据后 通过拿到数据库里面的数据 进行比对 若比对成功
  • 文件代码模板的使用

    文件代码模板的使用 发布于 2015 09 23 23 00 17 5 次阅读 评论 0 来源 网络整理 本篇内容为大家提供的是IntelliJ IDEA 使用教程中的文件代码模板的使用 IntelliJ IDEA是java语言开发的集成环
  • 异常java.lang.NumberFormatException解决

    原因一 超出了int类型的取值范围 项目中要把十六进制字符串转化为十进制 用到了到了Integer parseInt str1 trim 16 这个是不是后抛出java lang NumberFormatException异常 让老子看了半
  • OpenWrt使用命令行设置有线无线网络,安装luci

    原文 http vipshichg iteye com blog 1924265 utm source tuicool utm medium referral 在我们将路由器固件刷成开源的基于Linux内核的openwrt系统后 由于ope
  • 在Mac上关于tomcat服务器的安装、配置、启动、部署web详细流程

    之前在Mac上通过安装mamp来搭建PHP环境服务器 但是对于java来说 目前还是没有找到类似mamp这样强大的软件来构建及管理java环境服务器 所以目前也是通过命令行来进行tomcat服务器的安装和启动 简要的总结一下在Mac上进行t
  • 解决 libcurl.so.4: no version information available

    解决 libcurl so 4 no version information available 2017 04 03 晨晨 分类 Linux 阅读 11610 评论 1 使用自编译的 curl 后 可能会遇到这个问题 usr bin cu
  • RK3566恢复显示屏异常显示的方法

    设备进行EMI静电测试时 LCD显示屏异常之后不能恢复 需要在软件上检测LCD是否处于工作状态 如果没有处于工作状态 则需要重启LCD 如何确定LCD是否处于工作状态 参照SDK docs Common DISPLAY路径下的Rockchi
  • python爬虫练习

    python爬虫 第一章 Python 爬虫学习入门的使用 爬虫练习第一周 python爬虫 前言 一 什么是网络爬虫 二 爬虫有什么用 三 练习题 dome1 dome2 dome3 dome4 dome5 dome6 dome7 dom
  • 【日常-bug】文件上传oss报错-跨域- ‘Access-Control-Allow-Origin

    环境 docker nginx vue3 spring cloud oss 阿里文件上传服务 场景 上传文件大小 结果 前端页面 小于1M 正常 前端页面 大于1M 报错 postman 调接口 大于1M 正常 报错信息 Access to
  • Java 设计模式(六):代理模式

    代理模式 GitHub 地址 https github com yifanzheng java design patterns 代理模式 Proxy Design Pattern 在不改变原始类代码的情况下 通过引入代理类来给原始类增加功能
  • QT中槽的使用

    一 建立槽和按钮之间的连接 connect 信号发送者 发送的信号 信号接收者 信号接收者的槽函数 1 例子 connect ui gt pushButton SIGNAL clicked bool this SLOT showinfo 解
  • 11-11 重定向标准输入输出流(部分待定)

    1 freopen 将 stdout 重定向到其他文件流 stdout 是输入到控制台中的文件流 但可以通过 freopen 函数将其重定向到其他文件流 即输出内容不再显示在控制台 而在指定文件流 例如自定义的文件 中 例如 将 stdou
  • ElementUI 组件设置全局默认值

    最近碰到个需求 要求把管理系统的所有 el select 元素都添加 clearable 属性 整个管理系统估计有几百个页面 el select 的数量更是不计其数 如果用传统方法一个一个的找然后添加属性 绝对是不现实的 实际上可以通过设置
  • 使用docker安装mindspore1.3.0

    使用命令拉取镜像 sudo docker pull swr cn south 1 myhuaweicloud com mindspore mindspore gpu 1 3 0 运行 docker run it v dev shm dev
  • 分类算法之朴素贝叶斯——简单天气预报算法

    这两天学习了一个相对比较简单但是十分实用的分类算法 贝叶斯分类算法 与我做项目使用的svm算法相比确实有很多精妙之处 好比撒尿牛丸 好吃又好玩 而贝叶斯分类器则是简单又强大 本文结合简单天气预报进行讲解 贝叶斯定理 贝叶斯定理是概率论里面一
  • mobaxterm ssh登录access denied解决方法

    因为想要在远程复制文件到控制的虚拟机中 因此xterm这边要以root的身份登录 建立会话开启连接后会提示你 login as 输入root 然后输入密码 但是显示 Access denied 可能原因 在虚拟机中ssh的配置文件中设置的不
  • 【测试开发】关于性能测试的各种指标

    关于性能测试的各种指标 本指标适用于使用性能测试进行性能测试项目技术质量评价依据 规范技术测试结果评价 统一性能测试技术测试质量度量 应用系统技术质量度量指标范围广泛 本文难以涵盖全部 预期读者为测试管理人员 测试实施人员 技术支持人员 项
  • 蓝桥杯大赛— —每日一题(7、最优包含)

    问题描述 本题总分 15 分 我们称一个字符串 S 包含字符串 T 是指 T 是 S 的一个子序列 即可以从 字符串 S 中抽出若干个字符 它们按原来的顺序组合成一个新的字符串与 T 完 全一样 给定两个字符串 S 和 T 请问最少修改 S
  • ng bootstrap css,ng-bootstrap: NG Bootstrap 是基于 Angular(非 Angular.js)开发的 Bootstrap CSS 框架的指令集...

    NG Bootstrap Angular directives specific to Bootstrap 4 Welcome to the Angular version of the Angular UI Bootstrap libra