This topic is very related with this one. Briefly, there is a ui grid (table) and when you click (touch) on an row item in table, it shows another view, but I'm stuck (ES5):
var app = angular.module('app', ['ngTouch', 'ui.grid', 'ui.grid.selection', 'ui.router']);
app.controller('MainCtrl', ['$scope', 'uiGridConstants', function ($scope, uiGridConstants) {
$scope.gridOptions = { enableRowSelection: true, enableRowHeaderSelection: false };
$scope.gridOptions.columnDefs = [
{ field: "contactId", displayName: "CID", width: 60 },
{ field: "name", displayName: "Contact Name" }
];
$scope.myData = [{contactId: 1, name: "Contact 1"},
{contactId: 2, name: "Contact 2"},
{contactId: 3, name: "Contact 3"},
{contactId: 4, name: "Contact 4"}];
$scope.gridOptions.data = [];
$scope.gridOptions.data = $scope.myData;
$scope.gridOptions.multiSelect = false;
$scope.gridOptions.modifierKeysToMultiSelect = false;
$scope.gridOptions.noUnselect = true;
$scope.gridOptions.onRegisterApi = function (gridApi) {
//set gridApi on scope
$scope.gridApi = gridApi;
gridApi.selection.on.rowSelectionChanged($scope, function (row) {
$state.go("contact.detail.view", {contactId: row.entity.contactId});
});
}
}]);
Here is the plunker http://plnkr.co/edit/eHLXMDd7e3vnjsf2BWWf?p=preview