angular.js - ui-router中ui-view问题
黄舟
黄舟 2017-05-15 16:56:48
0
1
544

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
过去多啦不再A梦

Have to giveui-view命名。你这里不命名,是相当于默认去渲染这个ui-view.
Please refer to the official sample

            '': {
                ...
            },

Either it is named with this ''empty string as the key.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!