Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想对 url 参数应用一些过滤器。例如:
ui-sref="stateName({slug:{{someobj.slug | someFilter}}})"
我该如何应用这个?
您不需要在 ui-sref 中插入表达式。只需将要过滤的表达式括在圆括号内:
ui-sref="stateName({slug: (someobj.slug | someFilter)})"