【发布时间】:2021-10-31 15:02:10
【问题描述】:
我以这种方式包含了我的组件的 .css 文件 `
angular.
module('home').
component('home', {
templateUrl: 'home/home.template.html',
styleUrls: 'home/home.component.css'
});
` 但似乎样式表没有得到应用。 包含样式表的正确方法是什么? This is the folder structure.
【问题讨论】:
-
只是想知道为什么你用 javascript 而不是 typescript 编写 angular 2。此外,您粘贴代码的方式使其看起来像 angular.js,而不是 angular 2+ 指南
-
我有一个项目要在 Angular 1.x 中构建,其中包括 .js 文件。
标签: css angularjs angular angular-components angular-module