comment.component.ts:
import { Component, OnInit } from \'@angular/core\';
import { Router} from \'@angular/router\'
import { Comment } from
One solution would be to only display your ul
once your comments have been loaded, which would then force a refresh. So something like:
So once comments
has been loaded, Angular will force a refresh, and the ul
will be added to the DOM, at which point it will have all the data it needs to bind an li
per comment.