So im having trouble in the angular if statement, i wanna write a css line of code in case of the if statement is false. Can someone help me out?
Here is the code in the HTML file code:
<div *ngIf="city.length < 16; else BigName">{{city}}</div>
<ng-template #BigName>
.desktopCityFilterName {
padding-right: 0;
padding-left: 15px;
width: 205px;
}
{{city}}
</ng-template>
In case i have not made myself clear, what i want to do is display the name in case its length is less than 16 characters, and in case of not, adjust the size of the container and then display it.