Code Monkey home page Code Monkey logo

Comments (9)

gethinoakes avatar gethinoakes commented on June 17, 2024 17

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.

ElkeCodes avatar ElkeCodes commented on June 17, 2024 10

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.

Shailu4u avatar Shailu4u commented on June 17, 2024 2

Angular 5 Masonry Module with animations: https://github.com/Shailu4u/ng-masonry-grid

from angular2-masonry.

khalid-halo avatar khalid-halo commented on June 17, 2024

Any work around for the time being?

from angular2-masonry.

JaronrH avatar JaronrH commented on June 17, 2024

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.

rahulmodu avatar rahulmodu commented on June 17, 2024

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.

Gorniv avatar Gorniv commented on June 17, 2024

take a look https://github.com/Angular-RU/angular-universal-starter/blob/master/server.ts

from angular2-masonry.

juhguu avatar juhguu commented on June 17, 2024

@gethinoakes ty. 👍

from angular2-masonry.

renzo031109 avatar renzo031109 commented on June 17, 2024

Thanks Shailu4u this works for me.

from angular2-masonry.

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.