Hi guys!!!
I have this code for getting data in a mysql database
$categories = [
Category::find(1)->videos,
Category::find(2)->videos,
Category::find(3)->videos
];
return $categories[1];
I can access the object name from angular using the controller below
$http.get('/video_category')
.success(function(videoLists) {
$scope.videoLists = videoLists;
});
and calling this expression in the Html
{{ vidlist.name }}
my question is how do I access vidlist.name if I will return $categories
without array index???
Thanks in advance!!
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.