search

Home  >  Q&A  >  body text

javascript - Using ui-sref="{{item.url}}" in ui-self in angular will report Invalid state ref ''

When using angular, when using a loop to get the configuration data,

An error will be reported

It’s because ui-sref is initialized to be empty. How to modify it?

滿天的星座滿天的星座2827 days ago772

reply all(3)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-15 17:16:01

    用ui-state

    https://ui-router.github.io/n...

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-15 17:16:01

    ui-serf='item.url'

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-15 17:16:01

    First of all, take a look at this item.url 的值是什么, 路由配置那里有 没有配置这个 值对应的 state

    Let’s post the picture below

    reply
    0
  • Cancelreply