Skip to content

Commit

Permalink
fix(): Fixed issue Type 'Observable<{}>' is not assignable to type 'O…
Browse files Browse the repository at this point in the history
…bservable<SlimLoadingBa
  • Loading branch information
akserg committed May 3, 2016
1 parent 894ec35 commit dd8c37d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion bundles/ng2-slim-loading-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ System.registerDynamic("src/service", ["angular2/core", "angular2/src/facade/lan
try {
this.subscriber.next(event);
} catch (e) {
console.log(e);
console.log('!!! Suggestion: Seems you forget add <ng2-slim-loading-bar></ng2-slim-loading-bar> into your html?');
}
};
Expand Down
2 changes: 1 addition & 1 deletion bundles/ng2-slim-loading-bar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class SlimLoadingBarService {
private subscriber: Subscriber<SlimLoadingBarEvent>;

constructor() {
this.observable = new Observable((subscriber:Subscriber<SlimLoadingBarEvent>) => {
this.observable = new Observable<SlimLoadingBarEvent>((subscriber:Subscriber<SlimLoadingBarEvent>) => {
this.subscriber = subscriber;
});
}
Expand Down Expand Up @@ -96,7 +96,6 @@ export class SlimLoadingBarService {
try {
this.subscriber.next(event);
} catch (e) {
console.log(e);
console.log('!!! Suggestion: Seems you forget add <ng2-slim-loading-bar></ng2-slim-loading-bar> into your html?');
}
}
Expand Down

0 comments on commit dd8c37d

Please sign in to comment.