Giter VIP home page Giter VIP logo

Comments (18)

hatem20 avatar hatem20 commented on June 9, 2024 2

thanks alot @kapiladiyecha
@Gbuomprisco i think this issue should not be closed

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024 1

Hi @Gbuomprisco ,

I reopened this because of Cannot read property 'speed' of undefined issue.
As #2 (AoT support) fixed. Can it be fixed in the latest version?

Thanks

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

Are you sure you're importing the module?

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

Yes, I'm sure. I've imported module, the first error can be fixed by importing CUSTOM_ELEMENTS_SCHEMA & adding the namespace for svg

Ref: https://stackoverflow.com/questions/39428132/custom-elements-schema-added-to-ngmodule-schemas-still-showing-error

Ref: angular/angular#7216

But, for the second error, the reason is that not able to get content in the package, that's why it's throwing Can not read property 'speed' of undefined.

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

Can you post an online demo for this

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

Thanks for the quick response.

Here is the demo with the same error:
Plunker: https://embed.plnkr.co/TqWCp8HWQ2cm8urnaoPB/
[you can open the console and check error]
image

Zip file with a fresh simple angular-cli project: ngx-content-loading-demo.zip

from ngx-content-loading.

sippaprut avatar sippaprut commented on June 9, 2024

I got same error on angular 4

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

Can you try v 0.0.8? It will still not work with AOT, see the other issue open in this repository for details

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

Yes @Gbuomprisco, it's working with v 0.0.8.
Thanks for such a nice plugin.
Waiting for AoT support. I'll try to fix bug with the current version and will update here.

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

I'm awaiting for news on that as well :)

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

Can you please post the component controller code? From the error content is undefined

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

As per my understanding, we do not suppose to add anything to controller file right?
We just need to import it to the module and add directives to template (HTML) file.

I've already uploaded the code in earlier comments.

You can check this: Plunker: https://embed.plnkr.co/TqWCp8HWQ2cm8urnaoPB/

Zip file with a fresh simple angular-cli project:

ngx-content-loading-demo.zip

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

I wanted to check the property "content". It seems undefined. "Cannot read property 'speed' of undefined". Which in the tempate is referenced by content.

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

If you see this image, Line number 17,
here speed property used in the ngx-content-loading, which is causing this problem.

image

from ngx-content-loading.

Gbuomprisco avatar Gbuomprisco commented on June 9, 2024

Can you show me what content is?

from ngx-content-loading.

hatem20 avatar hatem20 commented on June 9, 2024

@kapiladiyecha you solved the problem?

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

No @hatem20 , it is not solved yet.

@Gbuomprisco , content is coming from this plugin, I just followed the given steps to import this, and just tried predefined placeholders without any other custom code.

And it is throwing the same error.

I'm not able to understand what else I can share, if you create the fresh project with angular-cli, angular 5.x you may face the same issue.

I already have attached one sample project in previous comment.

Thanks

from ngx-content-loading.

kapiladiyecha avatar kapiladiyecha commented on June 9, 2024

@Gbuomprisco Can you please reopen this issue?

from ngx-content-loading.

Related Issues (16)

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.