【发布时间】:2017-05-03 02:09:44
【问题描述】:
我用
设置了我的 index.html<body>
<my-app>Loading...</my-app>
</body>
我的 app.component 链接到一个显示登录信息的 templateUrl。 HTML 应该有一些彩色背景和一些带有输入标签的图像。
ng.core.Component({
selector: 'my-app',
templateUrl: 'app/app.component.html', //directed from root
styleUrls: ['app/app.component.css'] //directed from root
})
唯一认为我的索引会加载的是“正在加载...”部分。我试图删除它,然后它只是空白。
我忘记添加什么来使它加载我真正想看到的 HTML?
【问题讨论】:
标签: html css angular indexing css-selectors