Jade Mixins in AngularJS
问题 Hi I would like to implement Jade templates in my AngularJS project, and have mixin in my template (reusable code). However the problem that I am facing is that we cannot use Mixin with arguments. Am I doing it correctly or is there any alternative for the same in AngularJS that I am missing? 回答1: You can create an js object from your model and pass it as strings to the mixin like the following: +avatarRow({name: '{{avatar.name}}', uuid: '{{avatar.uuid}}', verificationCode: '{{avatar