Category : angular-json

I’m using the angular cli config fileReplacements in angular.json file to replace a folder content, like this: { "projects": { "myProject": { "architect": { "build": { "configurations": { "prod": { "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" }, { "replace": "node_modules/moment/locale/", "with": "src/moment-js-locale/" } ] } } } } } } } Notice that in ..

Read more

ngx-extended-pdf-viewer allows to omit the subfolders inline-locale-files and additional-locale after copying the entire library assets "src/assets", { "glob": "**/*", "input": "node_modules/ngx-extended-pdf-viewer/assets/", "output": "/assets/" } I tried to add ignore in the angular.json, but ignore is not allowed. { "glob": "**/*", "input": "node_modules/ngx-extended-pdf-viewer/assets/", "ignore": [ "node_modules/ngx-extended-pdf-viewer/assets/additional-locale", "node_modules/ngx-extended-pdf-viewer/assets/inline-locale-files" ], "output": "/assets/" } How can I omit these ..

Read more

In angular 8 my json format to pass the data is like { "name": "", "address": { "line1": "", "pincode_id": "" } } I create the format to pass the data to submit the form Format() { let data = this.Form.controls; let ctofclass = new type(); ctofclass.name = data[‘name’].value; ctofclass.line1 = data.address[‘line1’].value; ctrofclass.pincode_id = data.address[‘pincode_id’].value.id; ..

Read more

I’m using Angular JSON Schema Form to build a form with a model which can change upon selection of a different option. The problem I get is that even thought the model variable changes in my component, the form does not reload its values. This is my AJSF: <json-schema-form #resinForm ngDefaultControl id="resinDisplayForm" loadExternalAssets="false" [schema]="mySchema" [(ngModel)]="myModel" ..

Read more