course: Angular Material Components Theming System: Complete Guide | Create a custom theme | Angular Material Dev #11
Replies: 2 comments 3 replies
-
Before adding
1. When using non-standalone components// src/app/app.module.ts
import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
...
@NgModule({
...
imports: [
...
MatButtonModule // <--- This line
],
...
})
export class AppModule {} 2. When using standalone components// src/app/app.component.ts
import { Component } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
...
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
standalone: true,
...
imports: [
...
MatButtonModule // <-- This line
],
...
})
export class AppComponent { ... } |
Beta Was this translation helpful? Give feedback.
-
@shhdharmen - Thanks for the response. We intend to upgrade our project to Angular 17 and beyond. But we're going in steps and right now we're transitioning our components to comply with the MDC design guidelines. We are using your excellent guide to understand and navigate some poorly documented intricacies that are involved with this migration. Since the text and the table at the top of the Overview page shows that this guide was compatible with Angular Material version 15, 16 and 17, I was merely pointing out the facts for anyone else following along your guide who might run into similar hurdles as we did. |
Beta Was this translation helpful? Give feedback.
-
course: Angular Material Components Theming System: Complete Guide | Create a custom theme | Angular Material Dev
Learn Material Design in Angular, Theming Angular Material Components and Developing your Angular application with Material Design like a pro.
https://angular-material.dev/courses/m2-ng-components/m2-ng-components/create-custom-theme
Beta Was this translation helpful? Give feedback.
All reactions