你能建议如何分配{{$count}} times per month <span ng-include="'views/partials/month-dates.html'"></span>
吗?至 translate-plural
属性?
例如以下表达式导致解析错误:
<translate translate-n="notification.Data[flightType][direction].Days.length" translate-plural="{{$count}} times per month <span ng-include=\"'views/partials/month-dates.html'\"></span>">
N times per month on <span ng-include="'views/partials/month-dates.html'"></span>
</translate>
最佳答案
您是否尝试过使用 "
或 "
?我只是在属性内的 Angular 表达式中遇到了类似的问题,它是这样工作的。
关于angularjs - 我可以在 Angular 指令的属性值中使用双引号吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33558883/