Angular insert service in the file.html
问题 I'm using Angular 7 (and one day I have to upgrade my version). I have a service that have some variables that can change according to some Promise (http GET , PUT , ... response). I wish to print these variables on a template. Can I do this: app.component.html: <ng-container *ngIf="this.dogService.isWarningProblem"> <ngb-alert [dismissible]="false" type="warning" style="text-align: center"> {{this.dogService.errorMessage}} </ngb-alert> </ng-container> app.service.ts: export class