小编Jak*_*kub的帖子

如何在angular.js中实现自定义路由?

我有一条路线:

.state('home.blog', {
  url: "/blog",
  templateUrl: "blog.html",
  controller: "BlogController"
})
Run Code Online (Sandbox Code Playgroud)

我的路线是localhost:3000/home/blog我想改变它localhost:3000/blog.我搜索了互联网,但我没有找到任何简单的解决方案.

state angularjs angular-ui-router

1
推荐指数
1
解决办法
880
查看次数

标签 统计

angular-ui-router ×1

angularjs ×1

state ×1