How to use variables with pug mixin in angular?
0
I'm trying to build a mixin with with pug that takes an angular variable as an input and shows the input data. I can get it work with a string but not when I try and include an async data value. How could I do this? //component.view.pug h3 {{ (item | async)?.firstname }} {{ (item | async)?.lastname }} +myMixin(item) mixin pre(data) pre.bg-dark {{ data| async | json}}
angular pug
share | improve this question
asked Nov 19 '18 at 20:16
Justin Young Justin Young
809 1 10 31
...