javascript - Using ui-sref="{{item.url}}" in ui-self in angular will report Invalid state ref ''
滿天的星座
滿天的星座 2017-05-15 17:14:01
0
3
789

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?

滿天的星座
滿天的星座

reply all(3)
phpcn_u1582

用ui-state

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

巴扎黑

ui-serf='item.url'

漂亮男人

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

Let’s post the picture below

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template