I have this line of code
<a href="{{banner.url}}"></a>
But sometimes url is null. How can I check it for null and then pass url to href?
I've tried this
<a href="{{banner.url === null ? javascript:void(0) : banner.url}}"></a>
But it throws an error
zone.js:388 Unhandled Promise rejection: Template parse errors:
Parser Error: Got interpolation ({{}}) where expression was expected at column 0 in [{{banner.url === null ? javascript:void(0) : banner.url}}]