src/app/core/ui/abstract-view/abstract-view.component.ts

Description

Base class for wrapper components like RoutedViewComponent or DialogViewComponent

Relationships

Depends on

No results matching.

Index

Properties

Constructor

constructor(injector: Injector, isDialog: boolean)
Parameters :
Name Type Optional
injector Injector No
isDialog boolean No

Properties

componentInjector
Type : Injector | undefined
viewContext
Type : ViewComponentContext
import { Injector } from "@angular/core";
import { ViewComponentContext } from "./view-component-context";

/**
 * Base class for wrapper components like RoutedViewComponent or DialogViewComponent
 */
export abstract class AbstractViewComponent {
  viewContext: ViewComponentContext;
  componentInjector: Injector | undefined;

  constructor(injector: Injector, isDialog: boolean) {
    this.viewContext = new ViewComponentContext(isDialog);

    this.componentInjector = Injector.create({
      providers: [
        { provide: ViewComponentContext, useValue: this.viewContext },
      ],
      parent: injector,
    });
  }
}

results matching ""

    No results matching ""