OK like ,,, $scope[jaja] = true;

Dne středa 9. srpna 2017 12:34:07 UTC+2 Marián Rohaľ napsal(a):
>
> Hi a have a problem.
>
> this is my code: 
>
> --
>
> $http.post('../inc/php/profil_znalosti_load.php')
>     .success(function(data,status,header,config){ 
>       angular.forEach(data, function(value) {
>             var jaja = value[0];
>            $scope.jaja =true; // HERE IS MY PROBLEM, I THINK
>             console.log(jaja);
>         });
>
>     });
>
> --
>
> data is array with name of ng-model.
>
> But this code doesnt work. 
>
> Please help me, please.
>
> Thanks Marian
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to