diff --git a/lib/components/Redoc/redoc.ts b/lib/components/Redoc/redoc.ts index 33d3b638..7bbefece 100644 --- a/lib/components/Redoc/redoc.ts +++ b/lib/components/Redoc/redoc.ts @@ -27,16 +27,16 @@ import { LazyTasksService } from '../../shared/components/LazyFor/lazy-for'; export class Redoc extends BaseComponent implements OnInit { static _preOptions: any; - private element: HTMLElement; - private $parent: Element; - private $refElem: Element; - error: any; specLoaded: boolean; options: any; loadingProgress: number; + private element: HTMLElement; + private $parent: Element; + private $refElem: Element; + @Input() specUrl: string; @HostBinding('class.loading') specLoading: boolean = false; @HostBinding('class.loading-remove') specLoadingRemove: boolean = false; diff --git a/lib/services/menu.service.ts b/lib/services/menu.service.ts index bd32b9b5..f76b85fd 100644 --- a/lib/services/menu.service.ts +++ b/lib/services/menu.service.ts @@ -17,7 +17,6 @@ const CHANGE = { @Injectable() export class MenuService { - private _hashSubscription: Subscription; changed: EventEmitter = new EventEmitter(); ready: BehaviorSubject = new BehaviorSubject(false); @@ -26,6 +25,8 @@ export class MenuService { activeCatIdx: number = 0; activeMethodIdx: number = -1; + private _hashSubscription: Subscription; + constructor( private hash:Hash, private tasks: LazyTasksService,