doubts with modal and javascript

0

I have this modal:

<div class="uk-modal" id="modalbaixados">
<div class="uk-modal-dialog">
    <div class="uk-form-row">
        <div class="uk-grid">

            <div><h3 class="heading_a"> Baixas parciais do lançamento selecionado</h3></div>

        </div>
    </div>
</div>

<div class="uk-width-medium-2-10">
    <!--botão fechar modal-->
    <a class="md-btn md-btn-danger md-btn-wave-light md-btn-small uk-modal-close" bg>Fechar</a>
</div>

to open the modal:

<a href="#modalbaixados" data-uk-modal="{ center:true, bgclose:true }">

This works perfectly, however I will need to open the modal from a javascript function, so in this function I need a code to open the modal:

 //abrir modal
$scope.abrirModal = function (conta) {       
    como abrir a modal?
}

I will need tb to close this modal by a function:

//fechar modal
$scope.fecharModal = function () {       
    como fechar a modal?
}

How to do this?

    
asked by anonymous 25.06.2017 / 13:55

0 answers