Angular 8 Material - mat-slide-toggle is unknown!

Currently wrapping things up with the project: MyPatco and you can find the repo here for example.
Under my angular5 repo which isn't really angular 5 anymore but infact angular 8. That tells you how long its been since I've actually been working on this project. Or it could say how quickly angular is updating. Either way I'm going through my notes and writing about all the bugs I faced as I do with all my projects. This was probably the easiest bug but one that I thought was very interesting.

I would have thought the component would be in scope give the fact that its under the library material. However it needs to be imported explicitly. Which makes me wonder what other pieces or components need to be imported as well. I currently use a small set of features for mypatco, I do plan to add notifications. I have the features listed out either in my issues under mypatco and whatever extra libraries I use under the repo's wiki.

To answer my question from earlier, "HammerJS provides gesture recognition capabilities required by some components (mat-slide-togglemat-slidermatToolTip)." I think the name should be change to just toggle but that's just a personal choice.


/// [Inside your] ./src/app.module.ts
import {MatSlideToggleModulefrom '@angular/material/slide-toggle';


https://stackoverflow.com/questions/48684147/angular-mat-slide-toggle-is-not-visible
https://material.angular.io/components/slide-toggle/api

Comments

Popular posts from this blog

NPOI Does Not Support CSV

Updating Razor 2.0 to 3.0 with Asp.net MVC

Ng-repeat: Order a List Vertically rather Horizontal