Coder Social home page Coder Social logo

Comments (9)

pette9 avatar pette9 commented on July 16, 2024 1

@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.

ericel avatar ericel commented on July 16, 2024 1

@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.

pette9 avatar pette9 commented on July 16, 2024

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.

ericel avatar ericel commented on July 16, 2024

In my case i think it has something to do with Material2 mat-drawer-content

from ng-masonry-grid.

Shailu4u avatar Shailu4u commented on July 16, 2024

@pette9 Can you please elaborate if there are any errors.

from ng-masonry-grid.

Shailu4u avatar Shailu4u commented on July 16, 2024

@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.

Shailu4u avatar Shailu4u commented on July 16, 2024

@pette9 Fixed all bugs related to imagesLoaded etc.

from ng-masonry-grid.

Shailu4u avatar Shailu4u commented on July 16, 2024

@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.

Shailu4u avatar Shailu4u commented on July 16, 2024

Updated the package with all fixes. Hence closing the issue.

from ng-masonry-grid.

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.