Dynamically constructed ui-sref attribute in ui-router

前端 未结 2 1088
萌比男神i
萌比男神i 2020-12-09 04:52

I am new to angular and especially ui-router.

Here is a link:

SomeText

The link

2条回答
  •  没有蜡笔的小新
    2020-12-09 05:05

    Try to use a simple name for state as 'topics' and use 'topics/:topicId' as url property. After that you can use ui-sref='topics({topicId: topic.id})'

提交回复
热议问题