Giter Club home page Giter Club logo

Comments (2)

fergardi avatar fergardi commented on July 3, 2024 1

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!

from fab-speed-dial.

PowerKiKi avatar PowerKiKi commented on July 3, 2024

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:

image

from fab-speed-dial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.