How to substring in file *.html


#1

Hi guys. i have {{object.name}} in template file with value = "20/01"
How to i can substring {{object.name}} become 2 subtring: substring1 = 20 and substring2 = 01
I want process in template file (*.html)
Thank you


#2

hey you, you can use syntax {{ object.name | limitTo: 2 }}


#3

i have try, but it error syntax