I'm trying to send the data once the person press on the link and display it in another page. I have looked all around but everything i try doesn't let me do what i need.
this is my html.
Page1 Manual de Toma de Muestras
<ons-list class="timeline" modifier="inset" ng-controller="namesCtrl">
<ons-list-item class="timeline-li" modifier="tappable" ng-repeat="x in names">
<ons-row onclick="myNavigator.pushPage('muestra.html', { animation : 'slide' } )">
<ons-col>
<div class="timeline-date">{{ x.tat }}</div>
<div class="timline-from">
<span class="timeline-name">{{ x.test }}</span>
<span class="timeline-id">{{ x.dept }}</span>
</div>
<div class="timeline-message">
<strong>Code:</strong>{{ x.code }}<br>
<strong>CPT Code:</strong> {{ x.cptcode }}
</div>
</ons-col>
</ons-row>
</ons-list-item>
</ons-list>
this is the controller
// controller.js
(function() {
var app = angular.module('myApp', ['onsen']);
//Getting Json Data controller
app.controller('namesCtrl', function($scope, $http) {
$http.get("json.php")
.then(function (response) {$scope.names = response.data.doctores;});
});
//Sliding menu controller, swiping management
app.controller('SlidingMenuController', function($scope) {
$scope.checkSlidingMenuStatus = function() {
$scope.slidingMenu.on('postclose', function() {
$scope.slidingMenu.setSwipeable(false);
});
$scope.slidingMenu.on('postopen', function() {
$scope.slidingMenu.setSwipeable(true);
});
};
$scope.checkSlidingMenuStatus();
});
})();
i need to send the {{x.tat}}{{x.test}} etc.. to another page when clicked. i have seen a lot of things very similar but nothing like this. i tried sending it in the
$scope.myNavigator.pushPage("link/to/some/other/page.html", {param1: {{x.tat}}, param2: {{x.test}}});
but doesn't work. can i get any direction on it?