File

src/app/shared/components/helper/helper.component.ts

Metadata

selector cd-helper
styleUrls ./helper.component.scss
templateUrl ./helper.component.html

Index

Inputs

Constructor

constructor()

Inputs

html
Type : any
import { Component, Input } from '@angular/core';

@Component({
  selector: 'cd-helper',
  templateUrl: './helper.component.html',
  styleUrls: ['./helper.component.scss']
})
export class HelperComponent {
  @Input()
  html: any;

  constructor() {}
}
<ng-template #popoverTpl>
  <div [innerHtml]="html"></div>
  <ng-content></ng-content>
</ng-template>
<i class="fa fa-question-circle"
   aria-hidden="true"
   [popover]="popoverTpl"
   placement="bottom"
   container="body"
   [outsideClick]="true">
</i>

./helper.component.scss

@import '../../../../defaults';

i {
  color: $color-helper-bg;
  cursor: pointer;
  padding-left: 4px;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""