docs(resources): use ng-href to avoid false broken link reports (#2186)

This commit is contained in:
Patrice Chalin 2016-08-24 14:46:54 -07:00 committed by Kathy Walrath
parent 014883d074
commit 2fd85d1adc
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
<div ng-repeat="(section, sectionObj) in subcategoryObj"> <div ng-repeat="(section, sectionObj) in subcategoryObj">
<div ng-repeat="resource in sectionObj | orderObjectByOfTypeString:'title':false"> <div ng-repeat="resource in sectionObj | orderObjectByOfTypeString:'title':false">
<div class="c-resource" ng-if="resource.rev"> <div class="c-resource" ng-if="resource.rev">
<a class="l-flex--column resource-row-link" target="_blank" href="{{resource.url}}"> <a class="l-flex--column resource-row-link" target="_blank" ng-href="{{resource.url}}">
<div> <div>
<h4>{{ resource.title }}</h4> <h4>{{ resource.title }}</h4>
<p class="resource-description" ng-if="resource.desc">{{ resource.desc }}</p> <p class="resource-description" ng-if="resource.desc">{{ resource.desc }}</p>
@ -34,9 +34,9 @@
<div class="c3"> <div class="c3">
<div class="c-resource-nav shadow-1 l-flex--column h-affix" ng-class="{ 'affix-top': ctrl.scrollPos > 200 }"> <div class="c-resource-nav shadow-1 l-flex--column h-affix" ng-class="{ 'affix-top': ctrl.scrollPos > 200 }">
<div class="category" ng-repeat="(category, categoryObj) in ctrl.fbObject"> <div class="category" ng-repeat="(category, categoryObj) in ctrl.fbObject">
<a class="category-link h-capitalize" href="#{{ category }}">{{ category }}</a> <a class="category-link h-capitalize" ng-href="#{{ category }}">{{ category }}</a>
<div class="subcategory" ng-repeat="(subCategory, subcategoryObj) in categoryObj"> <div class="subcategory" ng-repeat="(subCategory, subcategoryObj) in categoryObj">
<a class="subcategory-link" href="#{{subCategory}}">{{subCategory}}</a> <a class="subcategory-link" ng-href="#{{subCategory}}">{{subCategory}}</a>
</div> </div>
</div> </div>
</div> </div>