We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting an error attempting to use this module. Apparently the provider injection is not working.
Here is a snip from photo.module.ts:
import { Masonry, MasonryModule } from '@thisissoon/angular-masonry'; import { SharedModule } from '../shared/shared.module'; import { PhotoRoutingModule } from './photo-routing.module'; import { AlbumsComponent } from './albums/albums.component'; import { PhotosComponent } from './photos/photos.component'; const masonryProviders = [ { provide: Masonry, useFactory: () => window['Masonry'] } ]; @NgModule({ imports: [ CommonModule, PhotoRoutingModule, SharedModule, MasonryModule.forRoot(masonryProviders), ],
Here is the error in the browser on use:
ERROR TypeError: _this.masonry is not a constructor
Here is a console.log('masonry is:', masonry) from inside the component:
masonry: undefined
Thanks for any help. :D
The text was updated successfully, but these errors were encountered:
No branches or pull requests
getting an error attempting to use this module. Apparently the provider injection is not working.
Here is a snip from photo.module.ts:
Here is the error in the browser on use:
ERROR TypeError: _this.masonry is not a constructor
Here is a console.log('masonry is:', masonry) from inside the component:
masonry: undefined
Thanks for any help.
:D
The text was updated successfully, but these errors were encountered: