Created
August 21, 2017 08:37
-
-
Save NetanelBasal/f09e3223ce27a0f7f50a6e3ca030bb3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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