Bootstrap Installtion
// Installation for Angular CLI
ng add @ng-bootstrap/ng-bootstrap
app.component.html
<h4 style="padding:25px;">
Angular Bootstrap - Show An Alert
</h4>
<p>
<ngb-alert [dismissible]="false">
<strong>Warning!</strong>
This is a simple alert using angular bootstrap.
</ngb-alert>
</p>
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
// for angular bootstrap
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
NgbModule // for angular bootstrap
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- angular - How to toggle element visibility
- angular bootstrap - Dismissible alert
- angular bootstrap - Danger warning success alert
- angular bootstrap - Alert closed event
- angular bootstrap - Rating hover event
- angular bootstrap - Readonly & editable Rating
- angular bootstrap - How to show Toast message
- angular bootstrap - Progressbar maximum value
- angular bootstrap - How to show striped Progressbar
- angular bootstrap - Light & dark Progressbar
- angular bootstrap - How to use Popover
- angular bootstrap - Open Popover on mouse hover
- angular bootstrap - Open close Popover on button click
- angular bootstrap - Popover custom CSS class
- angular bootstrap - Popover shown & hidden event