Provides base classes and utilities for bootstrapping Angular applications, including module-based and standalone components, with configuration loading and environment management. It offers abstractions for common setup tasks, such as dynamic module federation and environment updates. This package simplifies the initialization process for Angular projects.

npm version commitizen friendly styled with prettier Libraries.io dependency status for latest release, scoped npm package npm NPM

Installation

Add the package to your workspace:

Example :
yarn add @rxap/ngx-bootstrap

Install peer dependencies:

Example :
yarn add @angular/core @angular/platform-browser @angular/platform-browser-dynamic @rxap/config @rxap/environment ngx-logger 

Execute the init generator:

Example :
yarn nx g @rxap/ngx-bootstrap:init

Guides

Module-based bootstrap

ModuleApplication lives in a secondary entry point, @rxap/ngx-bootstrap/module, instead of the package root. This keeps @angular/platform-browser-dynamic (and therefore @angular/compiler) out of the production bundle of consumers that only use StandaloneApplication.

Breaking change: ModuleApplication is no longer exported from @rxap/ngx-bootstrap. Consumers importing it from the package root must switch to the subpath below.

Example :
import { ModuleApplication } from '@rxap/ngx-bootstrap/module';

@angular/platform-browser-dynamic is an optional peer dependency — install it only if you import from @rxap/ngx-bootstrap/module:

Example :
yarn add @angular/platform-browser-dynamic

Generators

init

Initialize the package in the workspace

Example :
nx g @rxap/ngx-bootstrap:init

results matching ""

    No results matching ""