import { TemplateRef } from '@angular/core'; /** * Structural directive for template projecting. * * * ##№ Usage * * Pass templates through content: * * ```html * * 1 * 2 * 3 * * ``` * * Select refs in `app-my-component`: * * ``` * \@ContentChildren(KitRefDirective) refs: QueryList; * ``` * * Output by `*ngTemplateOutlet`: * * ```html * * * * ``` * * #### Parametrize * * You can define any parameter to `kitRef` and then use it before rendering. * * ```html * * 1 * 2 * 3 * 4 * * ``` * * Filter refs by param: * * ```typescript * \@ContentChildren(KitRefDirective) refs: QueryList; * * get main(): KitRefDirective[] { * return this.refs.filter(i => i.param === 'main'); * } * ``` * * Render filtered refs: * * ```html * * * * ``` * * * ##№ Example * * * collection:breadcrumbs - * [sources](https://github.com/ngx-kit/ngx-kit/tree/master/packages/collection/lib/ui-breadcrumbs), * [demo](http://ngx-kit.com/collection/module/ui-breadcrumbs) */ export declare class KitRefDirective { private _template; kitRef: T; constructor(_template: TemplateRef); readonly template: TemplateRef; readonly param: T; }