2020欧洲杯时间表

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences2020欧洲杯时间表 any time.

Questions tagged [ngfor]

2020欧洲杯时间表 The Angular NgFor directive instantiates a template once per item from an iterable.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

Create not repetable structure inside ngFor or something like ngForOutlet

How to create some structure inside ngFor that will not be repeated? I need something like ngForOutlet. I want to group items depending on some item property and then insert them in suitable div. To ...
0
votes
0answers
18 views

Angular: *ngFor update DOM component after FormArray pathValue

I use ReactiveFormsModule. Form include FormControl and FormArray. This is code define a FormGroup feesForm = new FormGroup({ serviceName: new FormControl(''), serviceDescription: new ...
-1
votes
1answer
28 views

NgFor only supports binding to Iterables such as Arrays IONIC 4

I am developing a project in ionic 4. I want to show country List in ion-select I want to open the list on the click of button. When I try with static value it works perfectly. I also tried to ...
0
votes
0answers
20 views

Problem setting value in field ngValue form Angular

I have the follow code: .json 0: {stateId: 1, name: "Acre", uf: "AC", countryId: 1, country: {…}} 1: {stateId: 2, name: "Alagoas", uf: "AL", countryId: 1, country: {…}} 2: {stateId: 3, name: "...
2
votes
1answer
44 views

iterating interface array using *ngFor in typescript

So I have Implemented an interface for retrieve data from a service class. export interface FilteredSubjects { key: string, list: Subject[] } So currently I want to iterate FilteredSubject ...
1
vote
1answer
28 views

Prevent data bind for child component in ngFor

I have a component that is using child component inside ngFor loop. This child component has a data binding that is read with @Input. The problem I'm facing is that when I push data to Child ...
0
votes
2answers
65 views
+100

Angular trackby function using undefined side effects

I have an issue with change detection running too often within one of my components, so I'm trying to use the trackBy option for the ngFor directive. Through reading, I understand that Angular will ...
0
votes
2answers
23 views

ngFor not displaying when only 1 item returned in array

I have a json array that I collect from a REST API call looks as follows: [ {"id":1,"title":"Title One","author":"Auth One"}, {"id":2,"title":"Title Two","author":"Auth Two"}, {"id":3,"...
2
votes
1answer
20 views

Fixing Dash in Words When Iterating in *ngFor in Angular

I have to iterate non-product in *ngFor but it doesnt accept the - It can only accept _ but in - How would you be able to fix this? *ngFor="let product of products?.non-product
0
votes
1answer
28 views

change index value in an ngFor

Good evening, I would like to know if I can change the value of the index of my ngfor by the ID of each item in my list. since you know the index starts from 0, I would like to know if I can put the ...
0
votes
1answer
23 views

How to iterate through an array in an NgIf statement - Angular / Ionic

<ion-card *ngFor="let house of (houses | async)"> <ion-list *ngIf="house.members[0] === currentUserId"> <ion-item button (click)="goToHouseDetailsPage(this.house)"> <...
0
votes
1answer
20 views

Populate mat-table with multiple nested custom data on Angular 8.3.23

I know that is a little specific but i'm trying to populate a table with children of multiple nested data. My data are organized as follows: each one of my entities has an id, a name and a curve; ...
0
votes
1answer
26 views

ANGULAR Iterate over an Array within a Model

Synopsis: I am trying to iterate over an array that is returned as part of an object. The object has three properties 2 string, 1 array. I want to iterate over the array i my html but can't seem to ...
0
votes
0answers
11 views

How use trackBy and ngx-pipe 'reverse' together?

I added trackBy for updating my template. This is work. But when I added ngx-pipe 'reverse' *ngFor="let comment of comments | reverse; trackBy:trackByFn" reverse ignored. If I use only 'reverse' it's ...
3
votes
4answers
57 views

Why are angular ngFor components sharing the same variables

I'm making a list of questions (question's name and yes/no checkboxes) The problem is that when I click on the second question checkboxes, it still changes the ones from first component. Here's my ...

15 30 50 per page
1
2 3 4 5
112