index.htmlファイルに<a routerLink="/Profile">Profile</a>
を使用しているときに問題が発生しています。アンカータグが正しく機能しませんでした。私はindex.htmlの上ヘッダメニューを配置し、ときに私のファイルを作業app.component.html<a routerLink="#Profile">Profile</a>角4でウォーキングしていません
同じラインコード<a routerLink="/Profile">Profile</a>
に置かれ
<router-outlet></router-outlet>
角度4
<a href="#Profile" routerLink="/Profile" routerLinkActive="active">
<span class="icon-cogs"></span>Profile</a>
にルーティングするために、次のコードを追加したいですあなたはindex.htmlを内側にこのコードを置くべきではない、他のコンポーネントにそれを置くが、index.htmlを
をも「= 'HREFを削除#Profile "。 –
プロジェクトの構成を教えていただけますか? –