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.
我使用 grunt-init 创建了一个自定义 angularjs 项目。并希望在创建项目时根据对提示的回答来编辑应用程序模块名称。但不知何故,当我使用 props 对象时,我不断得到空白字符串。
我能够弄清楚。我没有正确使用道具模板。正确的使用方法如下,
var moduleName = "{%= name %}"