Closed fergardi closed 4 years ago
Yes this library is compatible with Ivy. You can double check yourself in a brand new project:
ng new fab-test
cd fab-test/
ng add @angular/material
yarn add @ecodev/fab-speed-dial
yarn start
This will create brand new Angular project with Angular 10, which use Ivy by default. Then in src/app/app.module.ts
:
@NgModule({
declarations: [
AppComponent,
],
imports: [
BrowserModule,
+ MatIconModule,
+ MatButtonModule,
+ BrowserAnimationsModule,
+ EcoFabSpeedDialModule,
],
providers: [],
bootstrap: [AppComponent],
})
And in src/app/app.component.html
:
<p>Here are some links to help you get started:</p>
+ <eco-fab-speed-dial>
+
+ <eco-fab-speed-dial-trigger>
+ <button mat-fab>
+ <mat-icon class="spin180">add</mat-icon>
+ </button>
+ </eco-fab-speed-dial-trigger>
+
+ <eco-fab-speed-dial-actions>
+ <button mat-mini-fab>
+ <mat-icon>search</mat-icon>
+ </button>
+ <button mat-mini-fab>
+ <mat-icon>edit</mat-icon>
+ </button>
+ <button mat-mini-fab>
+ <mat-icon>home</mat-icon>
+ </button>
+ </eco-fab-speed-dial-actions>
+
+ </eco-fab-speed-dial>
<div class="card-container">
The whole thing will compile in dev and in prod without issue. And the FAB speed dial will be shown correctly:
Well, shame on me https://medium.com/@tcguy/why-you-should-always-restart-your-angular-app-after-ng-add-6d182405e398
Is working now.
Thanks for your help and for your plugin!
Hello!
I'm trying to use this in my Angular10 project, but I keep getting an error:
Is this library Ivy-compatible?
Thanks in advance.