AngularStrap date-template

2

Problem

I'm implementing StrapAngular in my application, however I can not use the contentTamplate to insert a form into my modal aside.

I tried as follows

mainCtrl

$scope.aside = {
            "title": "Novo agendamento",
            "contentTemplate":  'views/agenda/form-novo-agendamento.tpl.html'
        };

Button

<buttontype="button" class="btn btn-lg btn-primary" bs-aside="aside">
    Novo agendamento
</button>

The title is filled correctly but the content does not come, the same happens with inserting the template directly from the data-template:

<button type="button" class="btn btn-lg btn-danger" data-template="views/agenda/form-novo-agendamento.tpl.html" data-placement="left" data-animation="am-slide-left" bs-aside="aside" data-container="body">Novo agendamento
</button>

Thank you in advance!

    
asked by anonymous 04.08.2014 / 19:59

1 answer

1

Solution

Changing the focus a bit was making another part of the system here, and I ended up giving myself a light on what could be done, and the solution was simple.

Passing the data-content-template directly into my HTML document I had the return of my template, thus getting my code:

<button type="button" data-content-template="views/agenda/novo-agendamento.tpl.html" data-template="views/agenda/modal.tpl.html" bs-aside="novoAgendamentoModal">Novo agendamento</button>

But directly in JS I could not pass my tpl, if someone has a way to do so you may feel free to enter the solution.

    
06.08.2014 / 05:17