base.html
<p ng-include="'topbar.html'"></p>
<p class='content'>
<p ng-include="'sidebar.html'"></p>
<p ui-view></p>
</p>
現(xiàn)在所有的內(nèi)容都會(huì)被插入這個(gè) ui-view
, 登錄,注冊,404也是, 那我如何能讓登錄,注冊,404不顯示在這個(gè)ui-view中,而是整個(gè)頁面只顯示登錄,只顯示注冊,只顯示404
人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!
得給ui-view
命名。你這里不命名,是相當(dāng)于默認(rèn)去渲染這個(gè)ui-view
.
參考官方sample
'': {
...
},
不是以這種''
空字符串作為key的就是命名的。