Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How do I fix building errors with Angular Material Components?

@import "[email protected]/material/prebuilt-themes/indigo-pink.css";
add this in style.css


As per the example given here, you also need to export the material modules from your shared material module

https://material.angular.io/guide/getting-started#step-3-import-the-component-modules

import {MatButtonModule,
        MatCheckboxModule} from '@angular/material';
 @NgModule({
   imports: [MatButtonModule, MatCheckboxModule],
   exports: [MatButtonModule, MatCheckboxModule]
 })
 export class MaterialModule { }

Tags:

Javascript

Typescript

Angular

Angular Material

Angular Cli

Related

Keras rename model and layers UFW firewall is not working on Ubuntu in DigitalOcean Bootstrap 4: Dropdown menu href link not going to href location vuex empty state on logout Best file picker for react native Invalid Bucket name when creating s3 bucket with AWS SDK React Native pass function to child component as prop Can't import PostgreSQL10 dump into 9.6 database ReactJS styles 'leaking' to other components How to run Google Cloud SQL only when I need it? Keras replacing input layer Python: Normalize image exposure

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy