Have `{{#with object.props}}` of nested object in vue template?


#1

have {{#with object.props}} of nested object in vue template?

{{#with object.customer}}
    {{name}}
{{/with}}

#2

What exactly is the question here?


#3

I have the nested object like this

let data = {
  customer: {
     name: 'Theara',
     .....
  },
  vendor: {....}
}

So I render this object prop on template

{{data.customer.name}}
{{data.customer.gender}}
-------
// Short hand for example
{{v-with data.customer}}
  {{name}}
  {{gender}}
{{/v-with}}