Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
templatefor angular hide by property
posted

Hi Guy,

i need hide property if the property is empty. 

the code is next

var _importeCantidadChico = _templateFor({
I: { align: Enum.align.right, template: (' ${I}' === '') ? '' : 'Importe:' + ' ${I}' }, C: { align: Enum.align.right, template: 'Cuotapartes' + ': ${C}' }
}, {
separator: '<br/>'
});

the ' ${I}' no get value, but the line  'Importe:' + ' ${I}' } print Importe: "empty"

sincerely

  • 3995
    Offline posted

    Hello,

    Can you provide an isolated running example demonstrating this?

    Also can you share what _templateFor is returning? And what is the format of the data records?