this might be a self explanatory question , but I wanted to know how or if I can implement an if query in my HTML code in Angular in the app.component.ts file. My plan is as follows:
info.page.ts:
@Component({
selector: 'app-info',
templateUrl: 'info.page.html',
styleUrls: ['info.page.scss'],
encapsulation: ViewEncapsulation.None,
template: `
<ion-content>
<div id="wrapper">
<app-version-info></app-version-info>
<attributions-info></attributions-info>
<div>{{value}}</div>
<div class="gauges-container">
<?php
if({{value}}<2000){
echo "<mwl-gauge class="five" [max]="2200" [min]="800" [dialStartAngle]="15" [dialEndAngle]="165" [value]="value" [animated]="true" [animationDuration]="0.5"> </mwl-gauge>";
}else{
echo "<mwl-gauge class="six" [max]="2200" [min]="800" [dialStartAngle]="15" [dialEndAngle]="165" [value]="value" [animated]="true" [animationDuration]="0.5"> </mwl-gauge>";
}
?>
</div>
</div>
</ion-content>
`,
})
Thank you for your help