{
path: '/sample/',
async: function (routeTo, routeFrom, resolve, reject) {
Request({url:'sample', params: {id : id} ,
success: function (data){
resolve({ componentUrl: './pages/sample.html' }, { context: data});
}
});
}
}
instead of this i want to move codes inside script tag in component page
inside sample.html
beforeCreate: function(){
var self = this;
.....
}