为什么只有<router-outlet>标签在页面重新加载时得到刷新?

时间:2019-11-12 13:03:38

标签: javascript html typescript angular6 angular7

导航时,显示面包屑的数据,但是当我尝试重新加载页面时,面包屑的数据没有刷新。请告诉我如何解决此问题?

<div class="m-grid__item m-grid__item--fluid m-grid m-grid--ver-desktop m-grid--desktop m-body" [ngClass]="pageBodyClass$ | async">

            <!-- BEGIN:: Aside Left -->
            <button class="m-aside-left-close" id="m_aside_left_close_btn" [ngClass]="asideLeftCloseClass | mJoin">
                <i class="la la-close"></i>
            </button>

            <ng-container *ngIf="asideLeftDisplay">
                <m-aside-left></m-aside-left>
            </ng-container>
            <!-- END:: Aside Left -->

            <div #mContentWrapper class="m-grid__item m-grid__item--fluid m-wrapper">

                <m-breadcrumb></m-breadcrumb>

                <div class="m-content" #mContent>

                    <router-outlet></router-outlet>

                </div>

            </div>

            <ng-container *ngIf="asideRightDisplay">
                <!-- <m-aside-right></m-aside-right> -->
            </ng-container>
        </div>

0 个答案:

没有答案