I have this in a template:
<div>{{String(element.elementId)}}</div>
but I get this error:
TableBasicExample.html:6 ERROR TypeError: _co.String is not a function
at Object.eval [as updateRenderer] (TableBasicExample.html:6)
at Object.debugUpdateRenderer [as updateRenderer] (core.js:14727)
at checkAndUpdateView (core.js:13841)
at callViewAction (core.js:14187)
at execEmbeddedViewsAction (core.js:14145)
at checkAndUpdateView (core.js:13837)
at callViewAction (core.js:14187)
at execComponentViewsAction (core.js:14119)
at checkAndUpdateView (core.js:13842)
at callViewAction (core.js:14187)
what I want to do is display the string literal "null" if element.elementId
is null, or display "undefined" if element.elementId
is undefined
, how do I do that?