尝试使用以下内容从主页导航时,会将我重定向到扩展名为.html
的网页。
<a href="playplug.html"></a>
/example.com/playplug.html
如何在部分模板的URL中实际跳过使用.html扩展名,如下所示,使用/不使用ui-view
, cos,我想导航到单独的HTML页面,无需显示home_page(example.com)中的部分模板。
/example.com/playplug
通常,ui-router的ui-view让我在主页面内显示部分模板;是否有这样的东西来覆盖ui-router的ui-view或任何其他调整......是AngularJS的新手
<a href="playplug.html" url="/playplug"></a>
答案 0 :(得分:0)
您只需输入完整的网址即可。大部分时间都有效。
见这里的例子: https://github.com/reflexdemon/ng-gulp/blob/master/src/app/home/home.html#L4