Angular登录页面

问题描述 投票:1回答:1

我是Angular的新手。我一直在观看YouTube上的教程,并且所有教程都通过粘性导航栏来教授路由。是否可以单击链接并导航到没有导航栏的全新页面?

This is the index.html displaying. The blue words are navigation and are routed.

我试图在不显示导航栏的情况下进入登录页面。有可能这样做吗?

Here is the code for the index.html and the app.component.html just in case its necessary

angular authentication sticky
1个回答
0
投票

您可以通过从app.component.html中删除<app-nav-menu></app-nav-menu>标记并将其添加到需要导航菜单的单个组件中来实现

这样,导航菜单将不会包含在组件中,除非您将其添加到组件中

© www.soinside.com 2019 - 2024. All rights reserved.