gbrlsnchs / material2-carousel

A carousel component for Angular using Material
https://gsr.dev/material2-carousel
MIT License
85 stars 118 forks source link

(refactor) Support for Angular v9. #35

Closed Cayan closed 4 years ago

Cayan commented 4 years ago

Properly import the ThemePalette from the core of Ng Material.

I was testing the latest Angular release v9.0.0-rc.0 and I decided to test this library with it. At first it wasn't building because of the error:

'@angular/material/index.d.ts' is not a module

which is caused by a breaking change introduced by v9.0.0-next.0 with the message:

Components can no longer be imported through "@angular/material". Use the individual secondary entry-points, such as @angular/material/button.

I made some tests and this PR is not likely to introduce any backwards conflict with the currently supported version.