jelgblad / angular2-masonry

https://github.com/desandro/masonry module for Angular2
101 stars 48 forks source link

Error masonry.default #6

Closed rubenkuipers closed 8 years ago

rubenkuipers commented 8 years ago

Hi there,

I get the following error in the console: `TypeError: masonry.default is not a constructor``

Any idea why that would happen? I have imported the directives.

antonbarada commented 8 years ago

@jelgblad why you use new masonry.defaults(...) instead new Masonry?

jelgblad commented 8 years ago

Fixed in https://github.com/jelgblad/angular2-masonry/commit/2a086b091d4ec184b65436926a327938514e0e5b