Comments (5)
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.
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.
Never heard of modules interferences in that way, but who knows...
Did you try to to upgrade everything ?
from fab-speed-dial.
I did but that kinda broke everything are the any specific things to update?
from fab-speed-dial.
from fab-speed-dial.
Related Issues (20)
- Support Angular 14 HOT 1
- Angular 15 support HOT 1
- Dial button does not close menu in Angular 16.1.0 after second press HOT 2
- Angular v17 support HOT 1
- open=false doesn't work HOT 1
- Component not working with content projection HOT 3
- Action buttons collapse when hovering in between each one HOT 4
- Why this package is downloading Chromium?? HOT 3
- spin90 and changing icon HOT 2
- Angular 9 support HOT 3
- An accessor cannot be declared in an ambient context HOT 1
- Outside Click, does not remove the 'eco-opened' css Class HOT 1
- 'eco-fab-speed-dial-actions' do not have an opacity of 0 when they collect! HOT 1
- Document is not defined HOT 2
- Feature request: base z-index configurable HOT 3
- Compatibility issues with Angular Ivy HOT 2
- Angular 11 HOT 1
- Angular Material v11 support HOT 1
- Add support for mini-fab button as trigger HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fab-speed-dial.