Skip to content

Commit a83a4c8

Browse files
committed
feat(loading): extends plugin base allow assign options
1 parent aa1627b commit a83a4c8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/providers/loading-ionic.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Injectable } from '@angular/core';
22
import { LoadingController, Loading } from 'ionic-angular';
3-
import { PreRequestPlugin, PostRequestPlugin, PostRequestErrorPlugin } from '@ramonornela/http';
3+
import { PreRequestPlugin, PostRequestPlugin, PostRequestErrorPlugin, PluginBase } from '@ramonornela/http';
44

55
@Injectable()
6-
export class LoadingIonicPlugin implements PreRequestPlugin, PostRequestPlugin, PostRequestErrorPlugin {
6+
export class LoadingIonicPlugin extends PluginBase implements PreRequestPlugin, PostRequestPlugin, PostRequestErrorPlugin {
77

88
protected loading: Loading = null;
99

@@ -19,7 +19,9 @@ export class LoadingIonicPlugin implements PreRequestPlugin, PostRequestPlugin,
1919

2020
protected presentLoading: boolean = false;
2121

22-
constructor(private loadingController: LoadingController) {}
22+
constructor(private loadingController: LoadingController) {
23+
super();
24+
}
2325

2426
getPriority(): number {
2527
return 1;

0 commit comments

Comments
 (0)