Comments (18)
thanks alot @kapiladiyecha
@Gbuomprisco i think this issue should not be closed
from ngx-content-loading.
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.
Are you sure you're importing the module?
from ngx-content-loading.
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: 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.
Can you post an online demo for this
from ngx-content-loading.
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]
Zip file with a fresh simple angular-cli
project: ngx-content-loading-demo.zip
from ngx-content-loading.
I got same error on angular 4
from ngx-content-loading.
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.
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.
I'm awaiting for news on that as well :)
from ngx-content-loading.
Can you please post the component controller code? From the error content is undefined
from ngx-content-loading.
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:
from ngx-content-loading.
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.
If you see this image, Line number 17,
here speed
property used in the ngx-content-loading, which is causing this problem.
from ngx-content-loading.
Can you show me what content is?
from ngx-content-loading.
@kapiladiyecha you solved the problem?
from ngx-content-loading.
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.
@Gbuomprisco Can you please reopen this issue?
from ngx-content-loading.
Related Issues (16)
- ionic DevApp renders black color on iOS HOT 2
- width is not working HOT 1
- ERROR ReferenceError: performance is not defined
- Dynamic width || 100%
- ngx content loading placeholder coming black box in IOS browser
- Angular 9 Support HOT 3
- How do I center this? HOT 2
- not able render loading on route change and in http request
- AoT support HOT 6
- Cannot read property 'speed' of undefined HOT 1
- Upgrade the dependencies.. HOT 1
- [Reopened] Angular 5.x | ERROR TypeError: Cannot read property 'speed' of undefined HOT 9
- Angular 6 support HOT 2
- Please fix "Support Safari browser" HOT 5
- Safari renders black elements in routes different than home page '/' HOT 1
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 ngx-content-loading.