console.groupEnd();
}
// TODO: Each form component should implement OnDestroy lifecycle hook
// Each form-based component implements `AbstractCapabilityFormControl.subscribeModelToForm()`.
// These components should call `AbstractCapabilityFormControl.onDestroy()` to unsubscribe cleanly via the OnDestroy()
// component lifecycle hook.
public onDestroy(): void {
console.groupCollapsed("Unsubscribing");
this._subscriptions.forEach((sub: Subscription) => sub.unsubscribe());
Each form-based component implements
AbstractCapabilityFormControl.subscribeModelToForm()
.These components should call
AbstractCapabilityFormControl.onDestroy()
to unsubscribe cleanly via the OnDestroy()component lifecycle hook.
https://github.com/thern743/DTDL-Editor/blob/a2bc30e4e30291a37373c40befd8f7ec258a69e7/src/app/formControls/AbstractCapabilityFormControl.ts#L47