我正在使用SSR。带有棱角流星的渲染模块来发送电子邮件。
但是ng-repeat在数组上不起作用。
以下是 HTML 代码:
<div ng-repeat="result in articles">
{{result}}
</div>
这是电子邮件 SSR。渲染代码:
SSR.compileTemplate( 'emailTemplate', Assets.getText( 'emails/emailTemplate.html' ) );
var emailData = {
articles: [ 'John', 'Mark', 'Mick' ]
};
Email.send({
to: 'someuser@email.com',
from: "Some website",
subject: "Hey, you got an email",
html: SSR.render( 'emailTemplate', emailData )
});
上面的代码不会循环 HTML。谁能指导我我的代码有什么问题?
这可能是因为 meteor 目前只在客户端支持 angularjs。( 不是 100% 确定 )