Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Is there a way to set a template for a can.Component through a parameter?

$
0
0
you can use <content>

  1. can.Component.extend({
  2.       ...
  3.       tag: 'my-component',
  4.       template: '<content/>'
  5.       ...
  6. });

  1. <my-component>
  2.  {{someContent}}
  3. </my-component>


Viewing all articles
Browse latest Browse all 3491

Trending Articles