Posts by Ícaro de Barros • 56 points
5 posts
-
1
votes1
answer590
viewsA: Angular 7 Child Routes import Component using modules
In his app.module.ts try to replace the attribute 'Component' with 'loadChildren', leaving something like: import { NgModule } from '@angular/core'; import { Routes, RouterModule } from…
-
2
votes1
answer1089
viewsA: list multiple ngFor arrays
If your object listSubCateg is the "message" array shown in the structure of your question then each item your ngFor is an object that contains an array of other objects in the "sub_categories"…
-
1
votes1
answer1608
viewsA: Pass more than one parameter on the Angular route
It is possible to pass more than one yes parameter. I didn’t find it in the official documentation, but I believe you can’t start your path with a variable (in your case 'appid'). Try changing the…
-
0
votes3
answers342
viewsA: Function that adds/removes element of the array by clicking checkbox at the angle
First, if a variable is boolean just put it in your if, there is no need for an explicit comparison. Second, avoid comparing whole objects as in produto !== produto, use your Ids or some other…
-
0
votes3
answers165
viewsA: Problem checking if a type any is Undefined in Typescript
Probably what’s going on is that this.Atendimento.Checkout is Undefined, so when trying to access the attribute "Note" the error is triggered. Do multiple validations like in Rodrigo Costa’s answer.…