【问题标题】:how to using express routing in angular js?如何在 Angular js 中使用快速路由?
【发布时间】:2015-11-04 13:43:50
【问题描述】:

我想使用 angularjs 的快速路由。

我的网络服务如下。

我的服务器路由有两种方式。

1. http://localhost/login // has 2 sub client routings (/#login, /#register)

2. http://localhost/main  // has some client routings (/#profile, /#content, etc)

我想从 http://localhost/login/#login 转到 http://localhost/main/#profile

怎么做?

【问题讨论】:

    标签: angularjs express routing


    【解决方案1】:

    AFAIK 既不是$location,也不是基于它的ngRoute,被用来访问这个 URL 片段。您必须使用旧版 JS,使用 window.location.replace(URL)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-17
      • 2018-10-06
      • 2018-09-27
      • 1970-01-01
      • 1970-01-01
      • 2017-09-20
      • 2017-04-27
      相关资源
      最近更新 更多