ng:trimLeft

ng:trimLeft

The built-in function,  

ng:trimLeft()

trims any leading blanks from a string, which is the input for the function.


Example:

This expression outputs the string: 'abc   ':

    


You can also see the difference, if you combine this function with the concat function, which concatenates multiple strings:

 

This expression outputs: '<abc   >':

  

 

Alert

​If you get the error message: "Required cardinality of first argument of <function()> is zero or one; supplied value contains <x> items", then you should refer to the suggestions here.