I am new to angular and especially ui-router.
Here is a link:
<a ui-sref="/topic/{{topic.id}}">SomeText</a>
The link is dynamically populated.
So when I try to access that state from my config like this:
.state('topics/:topicId',{
url:"",
templateUrl: "",
controller: ""
})
I get this error message:
Error: Could not resolve '/topics/myTopic' from state 'topics'
In the above: myTopic
is a variable name.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…