angularjs 'ng-href' not working

前端 未结 1 1515
逝去的感伤
逝去的感伤 2021-01-23 00:25

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 nothin

相关标签:
1条回答
  • 2021-01-23 01:16

    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>
    
    0 讨论(0)
提交回复
热议问题