我的要求:打印时不打印角度为6的预览
我找到的唯一解决方法
Angular 2 Raw Printing Service 我正在使用Think链接进行Angular POS打印
我还有其他选择吗?
.ts代码
AND (@client IS NULL
OR [Client] IN (select value from string_split(@client,',')))
我的服务代码
printInvoice() {
console.log(this.printService.getPrinters());
}
错误:
我没有定义RSVP,该如何纠正?
答案 0 :(得分:2)
将其添加到该文件中将使其无法用于其他脚本。
您需要将其包含为全局脚本。
为此,请将以下内容添加到index.html中:
<head>
<script src="../node_modules/rsvp/dist/rsvp.min.js"></script>
</head>
或者,您可以将其包含在脚本部分的angular.json
中