angular - What is the "referencing folder" for an angular project?
问题描述
Im trying to implement a 3rd party grid (https://www.lidorsystems.com/support/articles/angular/grid/grid-component.aspx) and I am following the instructions in the README file. The first instruction is to copy/paste the '/bin/integralui folder' into the 'referencing folder'. Im not sure what the 'referencing folder' is that they are talking about. The only thing I can think of is the angular.json file but thats a file not a folder.
解决方案
All projects have an associated working directory in which they execute. What the IntegralUI team is likely referring to by a "reference folder" is simply a directory that which you can reference via a standard path in your project.
I don't have any experience with Integral UI, but a quick glance at their documentation reveals instructions to create a directory under the assets folder and name that subfolder integralui
To include resources that are used by IntegralUI components in your project during build, you need to:
Under assets folder create a subfolder named integralui Copy/Paste the node_modules/integralui-web/bin/integralui/resources folder to it
Add the following code under assets section in angular.json file: "src/integralui/resources"
Note This is required because Angular compiler cannot detect resources that are outside the /src section of your app. It is needed if you are using resources that are part of IntegralUI Web, in your application.
推荐阅读
- javascript - 在 background.js 中获取标签的元素
- java - addcallback ListenableFuture
- c - 使用makefile编译时如何设置GDB?
- android - 即使变量不匹配,切换语句也会调用 AsyncTask 中的所有案例
- html - 引导分页溢出父 div 取决于分辨率,如何缩小或换行?
- python - ValueError:不支持多类格式
- stripe-payments - 条纹表格未正确显示
- google-cloud-platform - 使用需要 oAuth 的负载均衡器来保护我的后端应用程序
- model - 获取模型的实际数据
- laravel - 如果新价格较低,Laravel Eloquent 更新记录