Answer the question
In order to leave comments, you need to log in
How to determine in Angular whether this is a locally built project or a project that is open on production?
Good day.
There is the following situation:
The project uses the Angular PDF Viewer - https://github.com/VadimDez/ng2-pdf-viewer
For its operation, the following construction is used, as in the documentation example:
(<any>window).pdfWorkerSrc = 'assets/scripts/pdf.worker.min.js';
assets/scripts/pdf.worker.min.js
on thesome-path/another-path/assets/scripts/pdf.worker.min.js
, then this will stop working on the locally assembled front. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question