@mmuscat/angular-error-boundary
TypeScript icon, indicating that this package has built-in type declarations

0.1300.1 • Public • Published

Angular Error Boundary

Error Boundaries for Angular, with a bit of Suspense. Click here to Learn More

Quick Start

Install via NPM

npm install @mmuscat/angular-error-boundary

Install via Yarn

yarn add @mmuscat/angular-error-boundary

Add BoundaryModule to your NgModule imports to enable error boundaries.

my.module.ts

@NgModule({
    imports: [BoundaryModule],
    declarations: [MyComponent],
    ...
})
export class MyModule {}

Add error boundaries to your components.

my.component.html

<error-boundary>
   <ng-template>
      <my-widget></my-widget>
   </ng-template>
   <fallback>Something went wrong</fallback>
</error-boundary>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1300.12latest

Version History

VersionDownloads (Last 7 Days)Published
0.1300.12
0.1300.01
0.1200.0-next.12
0.1200.0-next.01
0.0.41
0.0.33
0.0.21
0.0.11

Package Sidebar

Install

npm i @mmuscat/angular-error-boundary

Weekly Downloads

12

Version

0.1300.1

License

MIT

Unpacked Size

99.5 kB

Total Files

18

Last publish

Collaborators

  • mmuscat