Commit a3e51beb authored by LAVENIER's avatar LAVENIER
Browse files

Release v0.13.2

[fix] Editor: Revert changes on ngOnInit
parent 32cf9da4
import {Directive, Input, OnDestroy, OnInit, Optional, ViewChild} from '@angular/core';
import { AfterViewInit, Directive, Input, OnDestroy, OnInit, Optional, ViewChild } from '@angular/core';
import {ActivatedRoute, Params, Router} from '@angular/router';
import {MatTabChangeEvent, MatTabGroup} from '@angular/material/tabs';
import {AlertController, IonContent, ToastController} from '@ionic/angular';
......@@ -40,7 +40,7 @@ export class AppTabEditorOptions {
@Directive()
// eslint-disable-next-line @angular-eslint/directive-class-suffix
export abstract class AppTabEditor<T = any, ID = number, O = any> implements IAppEditor, OnInit, OnDestroy {
export abstract class AppTabEditor<T = any, ID = number, O = any> implements IAppEditor, OnInit, OnDestroy, AfterViewInit {
private _children: IAppForm[];
private _subscription = new Subscription();
......@@ -169,6 +169,10 @@ export abstract class AppTabEditor<T = any, ID = number, O = any> implements IAp
}
}
ngAfterViewInit() {
// Can be override by subclasses
}
ngOnDestroy() {
this._subscription.unsubscribe();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment