I am currently refactoring some old code and thus dealing with many redundant conditional checks. Here is a short example:
<div *ngIf="user" title="{{user?.name}}">
<span>Age: {{user?.age}}<span>
</div>
Most entries like 'user age', are a no-brainer, because we already know that the user exists. There is a clear hierarchy in the usage of encapsulated HTML tags.
I am concerned with the order within the tag. Can i safely remove the conditional check in 'user name'?