i need to passe id using $routeParam. my code is like below
js file
var app = angular.module("myApp"); app.controller("quotationPendingController", function ($scope,$http,NgTableParams,$filter,$timeout,$rootScope,ModalService,$window){ $scope.loadQuotationDetailsOnQuotationForUpdate = function (quotation) { $window.location.href = ('quotation_approve.jsp#/?target='+quotation.quotationId+'&action=u'); } }); jsp file like below > Blockquote <a class="grid-btn row-edit" target="_blank" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit" ng-click="loadQuotationDetailsOnQuotationForUpdate(quotation)"><span class="glyphicon glyphicon-pencil"></span></a> i need to change loadQuotationDetailsOnQuotationForUpdate(quotation) function from $routeParam.
how i change below function
$scope.loadQuotationDetailsOnQuotationForUpdate = function (quotation) { $window.location.href = ('quotation_approve.jsp#/?target='+quotation.quotationId+'&action=u'); }