New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mmuscat/angular-error-boundary

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mmuscat/angular-error-boundary

Error Boundaries for Angular, with a bit of Suspense.

latest
Source
npmnpm
Version
0.1300.1
Version published
Maintainers
1
Created
Source

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>

Keywords

Angular

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts