Hi, I am getting the response "Undefined" when I try to list all Agent Categories in my Angular 7 App. Could you please let me know the reason?
To Reproduce the issue: http://valminddemo.tk then click Agent Categories Web API is working properly. import { Component, OnInit } from '@angular/core'; import {Router} from "@angular/router"; import {AgentCategory} from "../model/agentcategory.model"; import {ApiService} from "../core/api.service"; @Component({ selector: 'app-agentcategorylisting', templateUrl: './agentcategorylisting.component.html', styleUrls: ['./agentcategorylisting.component.scss'] }) export class AgentcategorylistingComponent implements OnInit { agentcategories: AgentCategory[]; constructor(private router: Router, private apiService: ApiService) { } ngOnInit() { this.apiService.getAgentCategories() .subscribe( data => { this.agentcategories = data.result; }); } } -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.