0
각도 유형 스크립트 구성 요소에 LESS/Sass 변수를 몇 개 넣을 수 있습니까? 예를 들어각도 유형 스크립트 구성 요소에서 LESS/Sass 변수
:
animations: [
trigger('dialog', [
state('*', style({
transform: 'translate(unit(@var1, px), unit(@var2, px))',
top: 'unit(@var3, px)',
height: 'unit(@var4, px)'
현재 코드 : 스타일 다른 CSS 전처리 언어가이 불가능합니다
@Component({
selector: 'animationDialog',
templateUrl: './animationDialog.component.html',
styleUrls: ['./modal.component.css'],
animations: [
trigger('dialog', [
state('*', style({
transform: 'translate(20px, 20px)',
top: '20px',
height: '20px'
}))
케이스?