How to go to another view and how we read the parameter

In HTML we write

ui-sref="Trips({type:'Trips'})"

In Controller

$state.go('Trips', { type: 'Trips' });

To read Parameter we write

$scope.kk = $stateParams.type;

results matching ""

    No results matching ""