Giter Club home page Giter Club logo

Comments (5)

PowerKiKi avatar PowerKiKi commented on July 22, 2024

I cannot reproduce in a brand new Angular 9.0.3 project, neither in development nor production mode.

The project was created with the following commands, using default answers when needed:

ng new test-fab --minimal
cd test-fab/
yarn add @ecodev/fab-speed-dial
ng add @angular/material

Then the project code was modified as follow to show a basic fab-speed-dial:

diff --git src/app/app.component.ts src/app/app.component.ts
index deaacde..b10841a 100644
--- src/app/app.component.ts
+++ src/app/app.component.ts
@@ -8,6 +8,19 @@ import { Component } from '@angular/core';
       <h1>
         Welcome to {{title}}!
       </h1>
+
+<eco-fab-speed-dial>
+    <eco-fab-speed-dial-trigger>
+        <button mat-fab (click)="doAction('trigger')"><mat-icon>menu</mat-icon></button>
+    </eco-fab-speed-dial-trigger>
+
+    <eco-fab-speed-dial-actions>
+        <button mat-mini-fab (click)="doAction('action1')"><mat-icon>add</mat-icon></button>
+        <button mat-mini-fab (click)="doAction('action2')"><mat-icon>edit</mat-icon></button>
+        <button mat-mini-fab (click)="doAction('action3')"><mat-icon>search</mat-icon></button>
+    </eco-fab-speed-dial-actions>
+</eco-fab-speed-dial>
+
       <span style="display: block">{{ title }} app is running!</span>
       <img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
     </div>
@@ -29,4 +42,5 @@ import { Component } from '@angular/core';
 })
 export class AppComponent {
   title = 'test-fab';
+    public doAction(foo){}
 }
diff --git src/app/app.module.ts src/app/app.module.ts
index de5e54d..66040b1 100644
--- src/app/app.module.ts
+++ src/app/app.module.ts
@@ -3,6 +3,9 @@ import { NgModule } from '@angular/core';
 
 import { AppComponent } from './app.component';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { MatButtonModule } from '@angular/material/button';
+import { MatIconModule } from '@angular/material/icon';
+import { EcoFabSpeedDialModule } from '@ecodev/fab-speed-dial';
 
 @NgModule({
   declarations: [
@@ -10,7 +13,10 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
   ],
   imports: [
     BrowserModule,
-    BrowserAnimationsModule
+    BrowserAnimationsModule,
+    MatButtonModule,
+    MatIconModule,
+    EcoFabSpeedDialModule,
   ],
   providers: [],
   bootstrap: [AppComponent]

Will correctly build:

$ yarn run build 
yarn run v1.22.0
$ ng build
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.

chunk {polyfills} polyfills-es2015.js, polyfills-es2015.js.map (polyfills) 140 kB [initial] [rendered]
chunk {runtime} runtime-es2015.js, runtime-es2015.js.map (runtime) 6.16 kB [entry] [rendered]
chunk {runtime} runtime-es5.js, runtime-es5.js.map (runtime) 6.16 kB [entry] [rendered]
chunk {main} main-es2015.js, main-es2015.js.map (main) 18.9 kB [initial] [rendered]
chunk {main} main-es5.js, main-es5.js.map (main) 20.9 kB [initial] [rendered]
chunk {styles} styles-es2015.js, styles-es2015.js.map (styles) 178 kB [initial] [rendered]
chunk {styles} styles-es5.js, styles-es5.js.map (styles) 179 kB [initial] [rendered]
chunk {polyfills-es5} polyfills-es5.js, polyfills-es5.js.map (polyfills-es5) 647 kB [initial] [rendered]
chunk {vendor} vendor-es2015.js, vendor-es2015.js.map (vendor) 3.26 MB [initial] [rendered]
chunk {vendor} vendor-es5.js, vendor-es5.js.map (vendor) 3.83 MB [initial] [rendered]
Date: 2020-02-27T09:26:32.447Z - Hash: 1a6f1333e875d48607ed - Time: 35828ms
Done in 39.63s.

What are you doing different than this ?

from fab-speed-dial.

dennisblokland avatar dennisblokland commented on July 22, 2024

i also cannot reproduce in a brand new Angular 9.0.3 project. but i also cant see a big difference. can it be that modules interfere with each other?

from fab-speed-dial.

PowerKiKi avatar PowerKiKi commented on July 22, 2024

Never heard of modules interferences in that way, but who knows...

Did you try to to upgrade everything ?

from fab-speed-dial.

dennisblokland avatar dennisblokland commented on July 22, 2024

I did but that kinda broke everything are the any specific things to update?

from fab-speed-dial.

PowerKiKi avatar PowerKiKi commented on July 22, 2024

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.