2
array (
0 =>
Pessoa::array (
'nome' => 'Paulo',
'idade' => 15,
)
app.controller('meuCrtl', function ($scope, $http, $timeout) {
$http.get('ajax/getPessoa.php').success(function(data){
$scope.list = data;
...
I don’t want the data to be visible on getPessoa.php. Is there any other way to pass my data(array) to Angularjs so that it is hidden?
Yes, for your data to be hidden, Oce needs to encrypt it in PHP before passing it to the client. I found this framework here that can help you in this solution
http://www.jcryption.org/
– Roger Barretto