小编Chl*_*loé的帖子

我应该在 Angular index 和 app.component.html 中写什么?

我目前正在学习 Angular 并想知道究竟应该在 index.html 和 app.component.html 中编码什么 - 而不是在 components 中编码。

我目前的 Angular 项目是我的个人网站,我想将其迁移到 Angular 以进行培训。您可以在http://www.chloe-seiler.com/ 上找到它

-不管响应度,我正在努力。-

基本上有一个标题,一个导航和一个正文。正文仅在导航时不同,标题和导航在整个网站中保留。

我应该在 index.html 中对 header 和 new 进行编码吗?还是在 app.component.html 中?或者我应该让它们成为组件,在这种情况下:我的 index.html 和我的 app.component.html 是否保持为空?

在此先感谢您的帮助!

html architecture components web-applications angular

9
推荐指数
2
解决办法
7358
查看次数