This is what i have on my controller:
$scope.order = [];
var values = CartService.cart;
angular.forEach(values, function (value, key) {
$scope.order.push(value.cart_item_name);
});
This part is for the Textarea box:
$scope.payTrans = {
myOrder: --->equals to something to get all the data
}
And this the html textarea box:
<textarea style="height: 500px;"
class="bookingtextareamargin"
placeholder="Comments"
ng-model="payTrans.myOrder">
This where i want to show all the data like :
Item 1
item 2
Item 3
Item 4
</textarea>