0
var x = $location.search('filterBy=')[1];              
        $http({method: 'GET',url: '/asasa/sddd?websiteId='+x}).success(function(data) {
                $scope.onlinedata = data.coupons;              

            }); 

my url pattern www.asasa.com/asa/filterBy=80?couponid=121212

I am trying to store url pamars filterBy value(80) in a variable also in try to store couponid in another variable .I am using angular js 1.2.17

Himanshu Bhuyan
  • 306
  • 2
  • 8
  • 20

0 Answers0