Skip to content

Commit 40ec52f

Browse files
authored
Don't import Rollbar as a namespace in the Angular example (#1278)
1 parent ea292b9 commit 40ec52f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/angular/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// src/app/app.component.ts
22
import { Component, inject } from '@angular/core';
33
import { RollbarService } from './rollbar.errorhandler';
4-
import * as Rollbar from 'rollbar';
4+
import Rollbar from 'rollbar';
55

66
@Component({
77
selector: 'app-root',

examples/angular/src/app/rollbar.errorhandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// src/app/rollbar.errorhandler.ts
22
import { ErrorHandler, inject, Injectable, InjectionToken } from '@angular/core';
3-
import * as Rollbar from 'rollbar';
3+
import Rollbar from 'rollbar';
44

55
// InjectionToken for providing a Rollbar instance
66
export const RollbarService = new InjectionToken<Rollbar>('rollbar');

0 commit comments

Comments
 (0)