File

integration-libs/cds/src/profiletag/cms-components/profile-tag.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector cx-profiletag
template
<ng-container *ngIf="profileTagEnabled$ | async"></ng-container>

Index

Properties

Constructor

constructor(profileTagInjector: ProfileTagInjectorService)
Parameters :
Name Type Optional
profileTagInjector ProfileTagInjectorService No

Properties

profileTagEnabled$
Type : Observable<boolean>
Default value : this.profileTagInjector.track()
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { Observable } from 'rxjs';
import { ProfileTagInjectorService } from '../services/profile-tag.injector.service';

@Component({
  changeDetection: ChangeDetectionStrategy.OnPush,
  selector: 'cx-profiletag',
  template: `
    <ng-container *ngIf="profileTagEnabled$ | async"></ng-container>
  `,
})
export class ProfileTagComponent {
  profileTagEnabled$: Observable<boolean> = this.profileTagInjector.track();
  constructor(private profileTagInjector: ProfileTagInjectorService) {}
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""