Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个自定义角度指令、数字控制,并希望在剑道 ui 网格列模板中使用它。
如何做到这一点?有人可以提供一个例子吗?
谢谢!
假设您的指令名称是 myDirective。您可以将模板应用为
template: '<my-directive></my-directive>'
或者
template: '<span my-directive></span>'