ngx-hm-carousel | a light carousel for Angular9 , support mobile touch | Carousel library
kandi X-RAY | ngx-hm-carousel Summary
kandi X-RAY | ngx-hm-carousel Summary
An Carousel that eazy to use with your custom template. This package is design by angular and hammerjs, if you use @angular/material, I strongly recommend you use this package. Depend on Hammerjs and resize-observer-polyfill. Support Angular 6+ and Rxjs6+.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ngx-hm-carousel
ngx-hm-carousel Key Features
ngx-hm-carousel Examples and Code Snippets
Community Discussions
Trending Discussions on ngx-hm-carousel
QUESTION
I am trying this example https://github.com/ZouYouShun/ngx-hm-carousel. It is working fine but when I run this command:
ng build --prod
I am getting this error:
ERROR in :
Unexpected value 'NgxHmCarouselModule in D:/angular-apps/CarouselApp/node_modules/ngx-hm-carousel/lib/ngx-hm-carousel.module.d.ts' imported by the module 'AppModule in D:/angular-apps/CarouselApp/src/app/app.module.ts'. Please add a @NgModule annotation.
Do u know what is missing?
Using:
Angular CLI: 6.0.8
Node: 8.11.2
OS: win32 x64
This is my app.module.ts
...ANSWER
Answered 2018-Jun-15 at 19:03In Angular we have 2 models of compilation
JIT - Just-in-Time Compilation : JIT compilation as the name implies, compiles the application Just-in-Time in the browser at runtime.
AoT - Ahead-of-Time Compilation : AoT compilation compiles the application at build time.
By default, with the development build i.e ng serve
we get JIT compilation. This is how it works. The application code along with the angular compiler is downloaded by the browser. At runtime, when a request is issued to the application, the JIT-compiler in the browser compiles the application code before it is executed.
with the production build i.e ng build --prod
we get AoT compilation the angular application is pre-compiled. So this means the browser loads executable code so it can render the application immediately, without waiting to compile the application first.
Basic overview of Just In Time (JIT) Vs Ahead Of Time (AOT) Compilation in Angular Applications
Unfortunately, The library you are using does not support AOT compilation
One workaround is to Tweak your angular.json file set "aot": false
and "buildOptimizer": false
QUESTION
{{model2.progress}} //***undefined***
...ANSWER
Answered 2018-Jul-23 at 18:30I assume that you are activating carouselDot
template from carouselProgress
. Add another ng-content
inside carouselProgress
template and send the value of model2
as shown
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ngx-hm-carousel
Import hammerjs in your main.ts or app.module.ts;
Import NgxHmCarouselModule into your main AppModule or the module where you want use.
Module
HTML
TS
SCSS
this project not contain any specile style, you can custom by yourself
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page