Questions tagged [angular-json]
27 questions
10
votes
2 answers
How do I declare/include an imported scss folder in my library so I can call @import it in my application's scss files?
The Goal:
I am trying to include a path from my library so I can use an @import statement to include the scss files in my application like so:
@import "some-scss-in-my-lib"
The Problem:
Unfortunately everytime I try to serve my application I am…

Fy Z1K
- 618
- 1
- 7
- 21
6
votes
3 answers
Cannot set fileReplacements to replace folder content with Angular 11
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": {
…

benshabatnoam
- 7,161
- 1
- 31
- 52
5
votes
3 answers
Create multiple application from one Angular 9 project
My goal is to have one Angular project with shared parts: functionality, classes, look, services and page components (header, footer, some directives). Then inside it has 2 (or more applications) that will use the shared parts and add on the top of…

Filip Witkowski
- 795
- 3
- 14
- 24
3
votes
1 answer
Write json data to local JSON file using only angular 7
I have a form on submit of the form I am receiving the json object after form submit. What I am trying is that I have a file data.json in my application folder in "/src/app/data.json". How can I write the data into the JSON file with Node.
Below is…

rji rji
- 697
- 3
- 17
- 37
2
votes
0 answers
Angular 10: Styles.css not loading into Index.html
I've added one html element inside my index.html file and now I want to add some styling on it. I have written the style code inside styles.css file but it is not reflecting on index.html element.
Here is the code:
Index.html

Shivam Verma
- 905
- 1
- 8
- 20
2
votes
3 answers
'ngx-build-plus' could not be found in workspace
I am having below error in Prod build. Can someone suggest how to fix this error?
Project 'ngx-build-plus' could not be found in workspace.
Error: Project 'ngx-build-plus' could not be found in workspace.
myboard-app@0.1.0 ng /home/vsts/work/1/s
…

Shakeer Hussain
- 2,230
- 7
- 29
- 52
1
vote
1 answer
How to get data from 2 api and view data in angular material table?
Ihave 2 api ( users and category ), and I have relationship between this api in category id, how can I make join this api like inner join in sql.
My Code :
frist API ( name in posts ):
{
"list": [
{
"id": 1,
"title": "samsung",
…

Kareem
- 47
- 8
1
vote
2 answers
How to extract array of objects using interface
I have an array of objects with large amount of data like
This is the example data but I am having large amount of key pair values
[{ "id": 1, "name":"name1", age: 11, "skl": {"name": "KK school"} },
{ "id": 2, "name":"name2", age: 12, "skl":…

Gem
- 513
- 2
- 6
- 17
1
vote
3 answers
Referring angular.json in bazel workspace when supplying it in the root workspace is not an option
I am trying to integrate Angular project in an existing Bazel build system. When I try to run angular build, I am getting the following error.
Workspace configuration file (angular.json, .angular.json, workspace.json, .workspace.json) cannot be…

Birju Shah
- 1,220
- 9
- 18
1
vote
1 answer
Angular HttpClient SerializedName of fields in model
Is there any way to add some attribute/annotation to model class field to mark what is serialized name (question based on @SerializedName from Gson) of field in json response from server?
E.g. response from server contains fields like start_date or…

user3626048
- 706
- 4
- 19
- 52
0
votes
0 answers
Scss font file not load into Angular project
My font does not download and is not rendered in the DOM.
I've already tested a lot of things, but this damn font isn't loaded.
Thank you in advance for your help !
fonts.scss :
@font-face {
font-family: Montserrat, sans-serif;
src:…

DLx
- 97
- 1
- 13
0
votes
1 answer
How can I view nested rest api in material table in angular
I have nested rest api from URL, How can I view nested rest api in material table in angular ?
I have tried to create this code but ther is no data view in the table .
How can I resolve this problem ? How can I resolve this problem ?
- This is my…

Kareem
- 47
- 8
0
votes
2 answers
Want to access index of array in angular
I am getting array in this way, check attached image.
Now I am trying to display edit icon as this below :
{
header: 'Edit',
field: 'id',
view: (value: string, obj: any) => { return `angular
angular-grid
angular-arrays
angular-json

Sam
- 136
- 7
0
votes
0 answers
how to save data in database using JSON file in angular
Hii I am trying to save my HTML form data in the database. I create a JSON file for Dynamic fields and I bind it but there is some problem that's why data is not save. When I save the data, the same data is saved as it is in the JSON file as if I…

Ravindra sirvi
- 1
- 2
0
votes
2 answers
how to convert data in a string using json in angular
I do not know exactly how I can bind my form data in JSON string. in my scenario, I use a string field in the database and have some checkbox fields that I have to save in only a single database column using JSON. for that, I created an HTML form,…

ravindra
- 13
- 7