1
我正在Angular2中工作。Angular2量角器元件指令
我想获得具有与量角器自定义指令的元素。
我有这样的元素:
<span *ngIf="mobilePhoneControl.errors"
[msg-src-key]="mobilePhoneControl.errors.loctoolKeys[0]"
class="alert alert-warning"
role="alert">
Invalid Phone number.
</span>
我想通过搜索MSG-SRC键指令来获取元素。
但我不知道我应该怎么做。
谢谢。
编辑: Image