Problem using template inside routable tab

I’m trying to use routable tabs with async loading and templates, but seems that templates are not parsed fine.

routes = [
path: ‘/’,
url: ‘./pages/main.html’,
tabs: [
path: ‘/perfil/’,
id: ‘tab-perfil’,
async: function (routeTo, routeFrom, resolve, reject) {
templateUrl: ‘./pages/perfil.html’,
context: {

template perfil.html:

Nombre y apellidos

And what I get render in html is:

Nombre y apellidos

Thank you for your time!

You have component layout, use componentUrl instead