Angularstrap date-template

Asked

Viewed 109 times

2

Problem

I’m implementing Strapangular in my application, but I can’t use contentTamplate to insert a form in my modal aside.

I tried it this way

mainCtrl

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

inserir a descrição da imagem aqui

Button

<button type="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 occurs with the insertion of the template direct 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>

Thanks in advance!

  • Out of curiosity, why choose angularstrap instead of angularui ? rs :)

  • Because it adapts right to the look I want for application, such as Aside, the dropdown...

1 answer

1


Solution

Changing the focus a little bit was doing another part here of the system and I end up giving myself a 'light' about what could be done, and the solution was simple.

Passing the data-content-template directly in 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 homework, in case someone has a way for it can be comfortable to insert the solution.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.