我正在创建一个模具项目,其中使用npm包在它,有任何选项添加npm包内模具项目。任何建议我都找了很长一段时间。
这就是我如何使用ck-编辑器的角度。
<ck-editor name="editor" #myEditor [(ngModel)]="templateSetValue.template_content"
(change)="handleEditorData($event)">
</ck-editor>是否可以使用相同的模具项目https://www.npmjs.com/package/ngx-ckeditor?
发布于 2020-07-25 19:42:51
不确定我是否正确地理解了这个问题,但是要在您的Stencil.js项目中添加来自npm的包,您可以安装它,就像在任何其他节点项目中一样:
npm install <some-package>例如,nprogress
npm install nprogress @types/nprogress然后将其导入代码中,如下所示
import nprogress from 'nprogress';
nprogress.start();
// ...https://stackoverflow.com/questions/63086943
复制相似问题