Angular Bootstrap: Manual Installation
Angular Bootstrap: Manual Installation
The only two required dependencies are Angular and Bootstrap CSS. The supported versions are:
We strongly recommend using Angular CLI for setting up a new project. If you have an Angular ≥ 9 CLI project, you could simply use
our schematics to add ng-bootstrap library to it.
ng add @ng‐bootstrap/ng‐bootstrap
It will install ng-bootstrap for the default application specified in your angular.json. If you have multiple projects and you want to
target a specific application, you could specify the ‐‐project option
ng add @ng‐bootstrap/ng‐bootstrap ‐‐project myProject
Manual installation
If you prefer not to use schematics or want to add ng-bootstrap to an older project, you'll need to do the following:
Instead of importing the whole library with NgbModule, you could only import modules with components you need, ex. pagination and
alert.
Downloads Nueva transferencia.pdf Nueva transferencia1.pdf AngularCourses-master.zip 100% Clear
1 de 3 16/09/2020 22:08
The resulting bundle will be smaller in this case.
@NgModule({
imports: [NgbPaginationModule, NgbAlertModule],
})
export class YourAppModule {
}
We strive to support the same browsers and versions as supported by both Bootstrap and Angular, whichever is more restrictive.
Check browser support notes for Angular and Bootstrap.
We're using standard Angular i18n in ng-bootstrap templates. Since Angular 9 (and ng-bootstrap 6) you have to add the
additional @angular/localize polyfill to your CLI project. See more details in the official documentation.
Some components contain static English text or symbols that you might want to internationalize. Some of them appear on the screen,
like for example the placeholders used in the timepicker input fields. Others appear in aria attributes used for accessibility.
Internationalizing the ng-bootstrap components is done the same way as for any of your components, using the process described in
the Angular documentation. The only difference is that we already did the first phase of this process: marking static text messages in
the ng-bootstrap component templates for translation.
So, if you execute `ng xi18n` on your project, you will also find the ng-bootstrap messages to translate in the generated messages file.
All our messages are identified by an ID of the form ngb.[widget].[message]
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 the community at large are looking at
questions tagged with ng‐bootstrap.
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.
We are always looking for the quality contributions! Please check the Contributing doc for contribution guidelines. Additionally, for
local building and testing information, please see our Developer's Guide.
2 de 3 16/09/2020 22:08
Designed and built by the ng-bootstrap team with the help of our contributors.
Code licensed under MIT license conditions.
Documentation licensed under CC BY 3.0. Design and content of the documentation site heavily inspired by the original Bootstrap design.
Icons made by Iconmonstr
3 de 3 16/09/2020 22:08