import { CdkPortal } from '@angular/cdk/portal'; /** * Allows associating a value to a CdkPortal and being able to distinguish between them using that. * * Application usage: * ```html *
Portal 0 content
*
Portal 1 content
* ``` * * Component implementation usage: * ```ts * import type { QueryList } from '@angular/core'; * ... * export class SomeComponent { * ... * * @ContentChildren(CdkPortalValue) * values: QueryList; * * portal0: CdkPortal; * portal1: CdkPortal; * * ngAfterContentInit() { * console.log(this.values); * this.portal0 = this.values.filter(e => e.value === 0)[0]?.portal; * this.portal1 = this.values.filter(e => e.value === 1)[0]?.portal; * } * * ... * } * ``` */ export declare class CdkPortalValue { portal: CdkPortal; value?: T; constructor(portal: CdkPortal); }