我是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
您可以通过从app.component.html中删除<app-nav-menu></app-nav-menu>
标记并将其添加到需要导航菜单的单个组件中来实现
这样,导航菜单将不会包含在组件中,除非您将其添加到组件中