Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created August 21, 2017 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/f09e3223ce27a0f7f50a6e3ca030bb3c to your computer and use it in GitHub Desktop.
Save NetanelBasal/f09e3223ce27a0f7f50a6e3ca030bb3c to your computer and use it in GitHub Desktop.
@Component({
selector: 'app-root',
template: `
<div class="container">
<p tooltip="Tooltip from text">Tooltip from text</p>
<p [tooltip]="template">Tooltip from TemplateRef</p>
<ng-template #template>
<span>Tooltip from TemplateRef</span>
</ng-template>
<p [tooltip]="component">Tooltip from Component</p>
</div>
`
})
export class AppComponent {
component = ForTooltipComponent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment