javascript - angular中ui-self中使用ui-sref="{{item.url}}"会报Invalid state ref ''
滿天的星座
滿天的星座 2017-05-15 17:14:01
0
3
698

使用angular时,使用循环拿到配置数据时,

会报错

是因为ui-sref初始化为空,要怎么修改?

滿天的星座
滿天的星座

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!