Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
130
rated 0 times [  137] [ 7]  / answers: 1 / hits: 20580  / 10 Years ago, tue, august 5, 2014, 12:00:00

I'm trying to create a link to each id using angularjs ng-href but when I refresh the page, the links don't show up. I even closed the browser and cleared the cache yet nothing is happening. Here is my current code:



 <tr ng-repeat=parcel in parcels>
<td><a ng-href=http://www.proj.com/{{ parcel.id }}/edit//>{{ parcel.
id }}</td>
<td>{{ parcel.tracking_id }}</td>
<td>{{ parcel.shipper_ref_no }}</td>




$scope.parcels = [];
$scope.scans = [];
$scope.missings = [];
$scope.excludeds = [];

$scope.parcels = Outbound.summaryPageData.parcels;
$scope.scans = Outbound.summaryPageData.scans;
$scope.missings = Outbound.summaryPageData.missings;
$scope.excludeds = Outbound.summaryPageData.excludeds;


});

More From » angularjs

 Answers
13

I think it's a simple HTML syntax error - the <a> tag has no content. Try changing this:



<a ng-href=http://www.proj.com/{{ parcel.id }}/edit//>{{ parcel.id }}


to:



<a ng-href=http://www.proj.com/{{ parcel.id }}/edit/>{{ parcel.id }}</a>

[#69903] Monday, August 4, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
miles

Total Points: 256
Total Questions: 111
Total Answers: 104

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;