base.html
<p ng-include="'topbar.html'"></p>
<p class='content'>
<p ng-include="'sidebar.html'"></p>
<p ui-view></p>
</p>
现在所有的内容都会被插入这个 ui-view
, 登录,注册,404也是, 那我如何能让登录,注册,404不显示在这个ui-view中,而是整个页面只显示登录,只显示注册,只显示404
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
得给
ui-view
命名。你这里不命名,是相当于默认去渲染这个ui-view
.参考官方sample
不是以这种
''
空字符串作为key的就是命名的。