We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f77496 commit 2e9c333Copy full SHA for 2e9c333
README.md
@@ -127,6 +127,18 @@ Section 1 contents.
127
128
...etc. You can reach any nesting level here. Every view will be handled independently, keeping the state of top-level views.
129
130
+You can also use filters to define link hrefs. It will resolve segment URLs automatically:
131
+```html
132
+<ul>
133
+ <li ng-class="{active: ('s1' | routeSegmentStartsWith)}">
134
+ <a href="{{ 's1' | routeSegmentUrl }}">Section 1</a>
135
+ </li>
136
+ <li ng-class="{active: ('s2' | routeSegmentStartsWith)}">
137
+ <a href="{{ 's2' | routeSegmentUrl }}">Section 2</a>
138
139
+</ul>
140
+```
141
+
142
Difference from UI-Router
143
-------------------------
144
0 commit comments