Angular help

Total novice to angular here. Never used it before.

I have some code that outputs Angular 'placeholders' from a recordset.
e.g.
Code:
<div ng-if="media.type == 'File'">{{media.fileDetails}}</div>
<div ng-if="media.type != 'File'">{{media.menuTitle}}</div>

depending on whether the 'type' is a file or not.

This works fine with plain text but the contents of 'media.fileDetails' is a HTML string, e.g.

"<span class='txt' title='(14bytes)'>Filename (txt file, 14bytes)</span>"

which I need to be actually evaluated as formatted HTML rather than just output as the literal string.

Is there an easy way to do this inline?
I tried with an inline script settinginnerHTML to the value but it still remains as the string rather than being formatted as HTML.

Also tried <div [innerHTML]="media.fileDetails"></div> but it's not rendering anything.

Any help really appreciated.

Code uses Angular 1.8.2