I am trying to pass a php array in ng-click function to have it in php controller.
Here is my code I am passing php array to angular function.
<button type="button" class="btn btn-success"
ng-click="removeItem('<?php echo htmlspecialchars(json_encode($value['BookingsHotel']));?>')">Cancel Room</button>
here is my code, i am accessing my posted data with angularjs service
$booked_rooms=htmlspecialchars_decode($this->request->data['rooms']);
$booked_rooms=json_decode($this->request->data['rooms']);
once we are doing json decode it gives a null value.