【发布时间】:2017-07-04 22:58:45
【问题描述】:
我正在尝试使用 Angular Material 2 的 MdToolTip。语法看起来像
<span mdTooltip="Tooltip!">I have a tooltip</span>
但是,我想在我的锚标记上实现这个功能。我想在 class="not-active" 起作用时将鼠标悬停在 ahchor 标记上时显示工具提示。我怎样才能做到这一点?
<a [ngClass]="{'not-active': !isCurrentUserExist}" [routerLink]="['/create-timesheet']">Link1</a>
/*disabled side menu links*/
.not-active {
pointer-events: none;
cursor: default;
}
【问题讨论】:
标签: html css angular angular-material2