Add Bootstrap and NG Bootstrap:
[source,shell]
----
npm i bootstrap @ng-bootstrap/ng-bootstrap --force
----
// todo: add versions and remove force once ng-bootstrap supports Angular 12.
// https://github.com/ng-bootstrap/ng-bootstrap/issues/4093
Import `NgbModule` in `app.module.ts`:
[source,ts]
.src/app/app.module.ts
----
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
...
imports: [
...
NgbModule
],
...
})
export class AppModule { }
----
If you run `ng serve -o`, you'll get a blank screen. Look in your browser's developer console, and you'll see why.
[source,shell]
----
Uncaught Error: It looks like your application or one of its dependencies is using i18n.
Angular 9 introduced a global `$localize()` function that needs to be loaded.
Please run `ng add @angular/localize` from the Angular CLI.
----
Cancel the process and run `ng add @angular/localize` to fix this error. Now, if you restart your app, you'll see it's pretty simple. And kinda ugly.