i don’t know this is the right place for this,but. Using steal in files on AMD.
define(['can', 'tests/test.mustache!', 'tests/testcomponent.mustache!'], function(can, template, componenttempla `
te){
can.Component.extend({
tag:'sc',
template:componenttemplate,
viewModel:{
some:'123123!!!!!!!!!!!!'
}
})
var Test = can.Control.extend({
init:function(el){
can.$(el).html(template({testData:'124123'}))
}
})
var test = new Test('body')
})
Component can’t seem to render inside of a controller. what am i doing wrong?
p.s sorry for my english