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.
是否有可能做这样的事情:
{{ partial showPartial }}
在控制器中我定义了相应的属性:
showPartial : 'nodes/show',
我似乎没有正确理解语法,或者部分不支持属性查找?
您不能将模板名称动态传递给部分。如果您想这样做,您已经编写了 Darshan在此线程中建议的自定义部分帮助程序