1.3.4 • Published 2 years ago

@booji/angular v1.3.4

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
2 years ago

@booji/angular

Angular端SDK,本包在 @booji/browser 的基础上添加了Angular的集成,用于拦截 Angular 的错误(不支持 Angular1.x)

使用示例

入口文件

import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { init } from '@booji/angular';

import { AppModule } from './app/app.module';

init({
  dsn: "xxx",
  appKey: "xxx"
});

// ...

enableProdMode();
platformBrowserDynamic()
  .bootstrapModule(AppModule)
  .then(success => console.log(`Bootstrap success`))
  .catch(err => console.error(err));

ErrorHandler

import { NgModule, ErrorHandler } from '@angular/core';
import { createBoojiErrorHandler } from '@booji/angular';

@NgModule({
  // ...
  providers: [
    {
      provide: ErrorHandler,
      useValue: createBoojiErrorHandler(),
    },
  ],
  // ...
})
export class AppModule {}
1.2.0

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.0.1-alpha.1

2 years ago

1.0.1-alpha.3

2 years ago

1.1.0-alpha.1

2 years ago

0.3.9

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.2

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.3

2 years ago