The name of the data attribute to use for the
context.
Use
It is common for you to want some data in the template to be available
on an element. {{data name}} allows you to save the
context so it can later be retrieved by can.data or
$.fn.data. For example,
Use
It is common for you to want some data in the template to be available on an element.
{{data name}}
allows you to save the context so it can later be retrieved by can.data or$.fn.data
. For example,The template:
Rendered with:
Retrieve the person data back with: