0
私はルーティング(すべてのルーティング)をジャンプすると、ゆっくりとページが読み込まれ、6から10秒が必要です。通常、ページを完全に表示することができました。私はなぜこの現象を見つけることができませんでした。angular2.0.0-rc4:私はルートを飛び越したとき、ページの読み込みはゆっくりです
"@ angle/router": "3.0.0-beta.2"を使用しています。
main.routes.ts:
{path: '', redirectTo: '/static/real_time_results', pathMatch: 'full'},
{path: 'static/setting', component: Setting,children:[
{path: '', redirectTo: 'date', pathMatch: 'full'},
{path: 'network', component: SettingNetwork},
{path: 'date', component: SettingTimeAndDate},
{path: 'video', component: SettingVideo}
]},
{path: 'static/deployment', component: Deployment},
{path: 'static/real_time_results', component: RealTimeResults}
種子app.html:
<ul class="nav nav-sidebar">
<li *ngFor="let menu of menus" [routerLinkActive]="['active']" [routerLinkActiveOptions]="{ exact: false }">
<a class="row nav-list" [routerLink]="menu.address">
<div class="col-xs-8">
<span class="menu-text">{{menu.name}}</span>
</div>
<div class="col-xs-4">
<i class="glyphicon glyphicon-menu-right"></i>
</div>
</a>
</li>
</ul>
種子app.ts:
export class SeedApp implements OnInit {
private service:LogService;
private passwordResult = '';
private old_psd:string;
private psd:string;
private new_psd:string;
private menus = [
{name: 'real_time_results', address:['/static/real_time_results']},
{name: 'deployment', address: ['/static/deployment']},
{name: 'setting', address: ['/static/setting']},
];
どのブラウザを使用しますか? 。 。 –
chrome51 ........ – woshi17
バグレポートを作成するよりも適切な複製(Plunker)を提供できる場合は、 –