I'm new to angular and have this simple problem. I have a button,when i click i want to show a grid and some filters that are invisble.The filters are like this.
<div ng-show="filtroFilial" style="visibility: hidden" class="col-md-2">
<div class="form-group">
<label>Estado da Filial</label>
<div class="form-group form-md-line-input no-hint right" style="padding-top: 3px;">
<select id="regional" name="regional" chosen width="150" allow-single-deselect="true" ng-model="vm.relatorio.regional" style="width:100%"
ng-options="regional.Cod_Regional as regional.Nom_Regional for regional in vm.regionais | orderBy:'Nom_Regional'" ></select>
</div>
</div>
</div>
And the grid is like this.(The beggining)
<div id="divSilt" style="overflow-x: hidden;">
<div class="row">
<div class="col-md-12">
<div class="portlet light form-fit bordered" style="padding: 10px 20px 0 20px;">
<div class="portlet-body form">
<div class="tabbable tabbable-tabdrop">
<ul class="nav nav-tabs">
When i click "Aplicar Filtros" i want to show everthing that was hidden. I use ng-show or just ID ? This is my .js,
vm.filtrar = function() {
$scope.$parent.vm.loading = $http({
method: 'Post',
url: _obterUrlAPI() + "AcompanhamentoSilt/FiltroSilt",
dataType: "jsonp"
}).then(function successCallback(response) {
vm.importacaoSilt = response.data;
}, function errorCallback(response) {
MessageBox("Erro", response.data.Message);
});
};
if the return is sucess i want to show everything that will be like this.How can change the visibility?Is in the js i put above?


scope.showOthers = falsebefore your http. and then in your http once you have successfuly got your information changescope.showOthers = trueand then in divng-show = showOthers