How to find Array length inside the Handlebar templates?

后端 未结 4 1014
误落风尘
误落风尘 2021-02-01 11:43

I have a Handlebars template which is rendered using a json object. In this json I am sending an array. Like this:

var json = {
               \"array\":[\"abc\"         


        
4条回答
  •  既然无缘
    2021-02-01 12:26

    My Bad....

    {{array.length}} actually worked inside the template. Should have checked/tested it before posting it here.

提交回复
热议问题