Ich möchte ein Thema für meine eckige 4 App mit eckigen Material erstellen 2.Ich habe den ersten Teil erstellt, aber es funktioniert nicht. Was habe ich in diesem Code falsch gemacht?Angular 4 Thema funktioniert nicht
--Theme.scss
@import "[email protected]/material/_theming";
@include mat-core();
$app-primary: mat-palette($mat-blue, 600);
$app-accent: mat-palette($mat-green, 600);
$app-warn: mat-palette($mat-red);
$app-theme: mat-light-theme($app-primary, $app-accent, $app-warn);
@include angular-material-theme($app-theme);
- Komponente
<button color="primary" class="mat-raised-button">Pick Up</button>
<button color="accent" class="mat-raised-button">Drop Off</button>
- Winkel cli.json
"styles": [
"styles.css",
"theme.scss"
]
Welche Materialversion? – Faisal
Entfernen Sie den Unterstrich. Eine einfache Lösung. – Edric