search

Home  >  Q&A  >  body text

angular.js - a tag in angular not working

Code in angular:

<td><a href={{"http://www.baidu.com"}}></a> </td>

A record in angular has an a tag nested in the middle. I want the URL address to jump when clicked, but it doesn't work. What should I do?

ringa_leeringa_lee2819 days ago830

reply all(4)I'll reply

  • 習慣沉默

    習慣沉默2017-05-16 13:22:09

    How can I jump to a tag without href?

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-16 13:22:09

    Remove the curly braces and write directlyhref="http://www.baidu.com"

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 13:22:09

    Remove the brackets. If it still doesn’t work, see if the default event is blocked and use js directly

    reply
    0
  • 黄舟

    黄舟2017-05-16 13:22:09

    A label has no width and height, resulting in an empty position and cannot be clicked!

    reply
    0
  • Cancelreply