My goal is when I click the button, 3 seconds later a div
reread page ...
Why does not this code work?
<button id="btn-cadastra-tarefa" ng-click="adicionaTarefa()" onclick="atualiza()"
type="button" data-dismiss="modal" >
<span class="glyphicon glyphicon-ok-sign"></span>Salvar
</button>
<div id="atualizaPagina"></div>
function atualiza() {
setTimeout(function(){ $('#atualizaPagina').location.reload(); }, 3000);
}