Course: Angular Material Components Theming System: Complete Guide | Setting up the project | Angular Material Dev #14
Replies: 1 comment 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Course: Angular Material Components Theming System: Complete Guide | Setting up the project | 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/setting-up-the-project
Beta Was this translation helpful? Give feedback.
All reactions