我正在尝试使用ng类创建一个自定义类名。我想结合两个作用域变量的值来创建这个名称。这是我的密码:
HTML:
<body ng-app="programApp" ng-controller="programController">
<div ng-class="{quarter+number}">This should have a class of '.quarter12'</div>
</body>
联署材料:
angular.module('programApp
如何删除添加到angular2中的新组件的填充。例如:
这里,上面是我的项目的一个标题,但填充是自动添加的。我尝试将styles.css外部应用程序文件夹中的填充更改为0:
/* You can add global styles to this file, and also import other style files */
body {
margin: 0;
padding: 0;
}
我的appcomponent.html看起来是这样的:
<app-header></app-header>
<router-outlet>