Home > front end >  [for] presents/typescript
[for] presents/typescript

Time:11-28

I have a in the ts component categories () attribute, it to get the data back into the array


Then the component template that I want to use * ngFor to traverse the categories to obtain the data


But traversal complains


If commented that traveled through, simply put the length of the categories, content to {{categories. Length}}, {{categories [0]}} to play out in the form of words is no problem


So I was very strange because presents this traverse error on * ngFor problem, or ts that part of the grammar to write wrong? The get categories () this should be written in the book where

Bosses solutions, genuflect is begged alas whoops there was a face of meng force at the sight of the constructor

CodePudding user response:

ZSBDZSBD
  • Related