I am displaying a list of accountgroup names..However I get this error..
AccountGroupMasterListComponent.html:52 ERROR TypeError: Cannot read 
property 'account_group_name' of null
    at Object.eval [as updateDirectives] 
    at Object.debugUpdateDirectives [as updateDirectives] 
    at checkAndUpdateView (core.es5.js:12251)
    at callViewAction (core.es5.js:12599)
    at execEmbeddedViewsAction (core.es5.js:12557)

Please check mycode.

<tr *ngFor="let accountgroup of accountgroups ">
<!-- <a [routerLink]="['/accgrps',accgrp.id]"> -->
<a [routerLink]="['/accgrps',accountgroup.id]">
               {{ accountgroup.account_group_name }} 
<td>{{ accountgroup.base_group }}</td>
<td *ngIf="accountgroup.sub_group_id.account_group_name === null; else 
{{ null }}
<td><ng-template #elseBlock>
{{ accountgroup.sub_group_id.account_group_name}}
please could anyone help me out..

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.

Reply via email to