Comments (9)
@Shailu4u There are no errors when I build for production with angular-cli "1.6.5" but when in production, The ImagesLoaded
console log appears way before the images are loaded and the behaviour that follows is similar to what I get when I remove [useImagesLoaded]="true"
or set [useImagesLoaded]="false"
in development. For a masonry grid with no images, or few thumb sized images, it works fine for both development and production modes.
from ng-masonry-grid.
@Shailu4u is there a way to call the reloadItems from the service. I checked the service I didn't see any such method. It would be nice especially as when I delete an item as for now , the layout breaks. So It would be nice to call reload layout on item delete complete.
from ng-masonry-grid.
I have the same behaviour but the problem seems to be imagesloaded firing early when in production. The layouts without images work fine with the latest angular-cli
from ng-masonry-grid.
In my case i think it has something to do with Material2 mat-drawer-content
from ng-masonry-grid.
@pette9 Can you please elaborate if there are any errors.
from ng-masonry-grid.
@ericel @pette9 Updated the library with new version @1.2.0.
New features implemented such Add, Append, Prepend, RemoveItem, RemoveFirstItem and RemoveAllItems, onNgMasonryInit event.
from ng-masonry-grid.
@pette9 Fixed all bugs related to imagesLoaded etc.
from ng-masonry-grid.
@ericel Now we can get Masonry instance using onNgMasonryInit event. We can use all available Masonry methods with that instance such as reloadItems(), layout() etc
from ng-masonry-grid.
Updated the package with all fixes. Hence closing the issue.
from ng-masonry-grid.
Related Issues (20)
- Multiple grids on same page HOT 7
- Support for Angular 6 HOT 2
- Items below each other instead of being in a grid HOT 3
- Force Relayout Calculation
- ERROR TypeError: Cannot read property 'slice' of undefined HOT 2
- Images stacked over each other when fetched with a promise HOT 2
- Images reordered on page refresh HOT 1
- On Page refresh, slight blinking effect, not smooth grid-item load HOT 1
- Is there any other way to display multiple grid on same page other then using set time out function? HOT 1
- Image reOrderItems breaks the grid when columnWidth uses selector
- there seems some problem with demo HOT 1
- Angular7 : masonary-grid not showing different hights of images
- Support for RTL content
- Images are not getting set on the page load and once scroll it gets adjusted HOT 4
- Filter items HOT 3
- Package "ng-masonry-grid" has an incompatible peer dependency to "zone.js" (requires "^0.8.26", would install "0.9.1"). HOT 1
- reloadItems() for Filter/Sort
- Method to return sorted order
- Compatible with Angular Ivy - Angular 9 HOT 1
- Masonry not taking effect 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 ng-masonry-grid.