更新时间:2023-11-21 11:25:52
该指令是动态加载,这意味着道场不会解析声明标记成一个小部件。它不仅会在该网页上加载(配置时),或当手动调用。
The directive is dynamically loaded, which means that Dojo will not parse the declarative markup into a widget. It only does that on page load (when configured) or when manually invoked.
因此,为了解决这个问题,你将不得不被加载指令时调用道场解析器。你应该看看 道场/分析器
模块。
So, in order to solve this problem you will have to invoke the Dojo parser when the directive is loaded. You should look at the dojo/parser
module.