I'm new to angulars and i working on a project where i want a div to only show when the json data returns [false]. i sometimes get the json to return [false] when there is no results from the query.
JS
.controller('query_ctrl', function($scope, $http){ $http.get('http://localhost/db/templates/search/matches.php').success(function(data){
console.log(JSON.stringify(data));
$scope.matches=data;
});
})
HTML
<div ng-controller="query_ctrl">
<div align="center" ng-show ="$scope.matches='false'">json returned false
</div>
<div align="center" ng-show ="$scope.matches!='false'">json returned true
</div>
</div>