1.3.4 • Published 3 years ago

@booji/angular v1.3.4

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
3 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

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.0.1-alpha.1

3 years ago

1.0.1-alpha.3

3 years ago

1.1.0-alpha.1

3 years ago

0.3.9

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.3

3 years ago