I have an array like below;
$scope.cart = [];
This contains items like id, name etc.
How can I include the items in a href like below;
<a href="http://www.example.co.uk/search-menu/{{$scope.cart.restaurant_id}}/test">
This doesn't work.
I've also tried using ng-repeat=item in cart
FYI
When I console.log($scope.cart) I get the below;
[Object]
0: Object
cookie_id: "j0m3hdkf4c371nueajdi9gf4f3"
date: "0000-00-00"
day: ""
id: "92"
location: ""
restaurant_id: "1"
time: "00:00:00"
user_id: "63"