如何创建将其他指令添加到元素的指令?
例如,我想:
<input tag/>
链接为:
<input ng-pattern='/[\\w\\d]+/' ng-maxlength='10'/>
angularjs
angularjs ×1