我正在尝试检索在locationChangeSuccess事件的状态对象上设置的自定义属性(面包屑)。我可以通过
在控制台中看到该属性event.targetScope。$ state
但是当我尝试引用
event.targetScope。$ state.current
这些值消失了
app.js
@Override
public void doFilter(final ServletRequest request, final ServletResponse response
, final FilterChain chain) throws IOException, ServletException {
final HttpServletRequest httpRequest = (HttpServletRequest) request;
final SpnegoHttpServletResponse spnegoResponse = new SpnegoHttpServletResponse(
(HttpServletResponse) response);
// skip authentication if resource is in the list of directories to exclude
if (exclude(httpRequest.getContextPath(), httpRequest.getServletPath())) {
chain.doFilter(request, response);
return;
}
此事件触发时,有人可以帮助获取状态对象吗?