File

libs/core/src/lib/facade/noop-facade.ts

Description

A Noop Facade (doing nothing) standing in for any future Facade we create. There will be a Facade to connect to PFE but we are actually not limited.

Extends

AbstractBuildingBlockFacade

Index

Properties
Methods

Properties

_isConnected
Default value : false
connected$
Default value : new Subject<void>()
disconnected$
Default value : new Subject<void>()

Methods

connect
connect()
Returns : void
Static create
create(block: BuildingBlockInterface)
Parameters :
Name Type Optional
block BuildingBlockInterface No
Returns : NoopFacade
disconnect
disconnect()
Returns : void
markFormGroupAsTouched
markFormGroupAsTouched()
Returns : void
import { BuildingBlockInterface } from '../building-block/building-block-interface';
import { AbstractBuildingBlockFacade } from './abstract-building-block-facade';

/**
 * A Noop Facade (doing nothing) standing in for any future Facade we create.
 * There will be a Facade to connect to PFE but we are actually not limited.
 */
export class NoopFacade extends AbstractBuildingBlockFacade {
  static override create(block: BuildingBlockInterface) {
    return new NoopFacade(block);
  }

  override connect() {
    const block = this.buildingBlock;
    block.onPageConnection();
  }
}

results matching ""

    No results matching ""