Comments (9)
I've forked this repository and updated it for Angular 5+
https://github.com/gethinoakes/ngx-masonry
Works fine for me. I'll try to work on it more when I have time.
from angular2-masonry.
Another workaround is to temporarily add the package in the include array of your tsconfig.json. My full tsconfig.json is this:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
},
"include":[
"node_modules/angular2-masonry",
"src/**/*"
]
}
Note that by default there was no include present and I also had to add src/**/* into it to have full compilation of my project.
from angular2-masonry.
Angular 5 Masonry Module with animations: https://github.com/Shailu4u/ng-masonry-grid
from angular2-masonry.
Any work around for the time being?
from angular2-masonry.
Temporary workaround is to bring the angular2-masonry into a sub-folder of your app. You can that include it as usual using:
import { MasonryModule } from './angular2-masonry';
from angular2-masonry.
hello JaronrH
if you import
like import { MasonryModule } from './angular2-masonry';
then ssr will not work
error come=>>>>>>>>>>>>>>>
}( window, function factory( Outlayer, getSize ) {
^
ReferenceError: window is not defined
if you running project via ng serve it will work fine
from angular2-masonry.
take a look https://github.com/Angular-RU/angular-universal-starter/blob/master/server.ts
from angular2-masonry.
@gethinoakes ty. 👍
from angular2-masonry.
Thanks Shailu4u this works for me.
from angular2-masonry.
Related Issues (20)
- TypeScript files are still in npm storage
- Error loading in library HOT 1
- Cannot build with Webpack HOT 2
- Prepended elements are considered as appended
- watchForHtmlChanges is not working in IE 10
- Trigger layout method HOT 3
- Nothing happens after loading the layout
- Can't make component redraw new array in order. HOT 1
- Add Angular 4+ compatibility HOT 3
- Using the reloadItems function
- Is this project dead? HOT 5
- Images collapse after navigation HOT 2
- Failing to build for production HOT 1
- Alternative for this dead project HOT 4
- useImagesLoaded mess the list HOT 1
- Adding module does not work for Ionic project
- Bricks start from left position initially. HOT 2
- Production ready? HOT 3
- Server side errors with Angular Universal
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 angular2-masonry.