---
page: 'reference-detail'
title: 'ons-template'
name: 'ons-template'
collection: 'components'
reference: true
docCategory: 'js'
componentCategory: util
---
ons-template
Define a separate HTML fragment and use as a template.
Usage
#
<ons-template id="foobar.html">
...
</ons-template>
See also
#
Discussion
#