Slider Problem with angular6 and bootstrap3
I'm currently developing an application under angular version 6 which implements a template that had html, css, js, bootstrap and jquery among other technologies dependent on jquery, the problem I have is that I am implementing a slider that came with the template to show some products through NgFor , initially when you load the page does not render neither the images nor the information of the products as such, nor the styles css, but once I reload the page with cache it shows everything correctly, attached code and screenshots, thank you!
<ng-container>
<div class="row">
<div class="col-md-12 col-sm-10 col-xs-6">
<div class="tab-content">
<div id="tab3" class="tab-pane active">
<div class="product-slider product-slider1">
<div class="wrap-item" data-pagination="false" data-navigation="true" data-itemscustom="[[0,1],[768,2],[1024,3],[1200,4]]">
<ng-container *ngFor="let prod of productFinal">
<div class="item-product item-product1 style2 text-center">
<div class="product-thumb">
<a href="/detail" class="product-thumb-link rotate-thumb">
<img src="{{prod.images}}" alt="">
<img src="{{prod.images}}" alt="">
</a>
<a href="/quick" class="quickview-link fancybox fancybox.iframe"><i class="fa fa-search" aria-hidden="true"></i></a>
</div>
<div class="product-info">
<h3 class="product-title"><a href="/detail">{{prod.name_product}}</a></h3>
<div class="product-price">
<ins class="color"><span>€30.000</span></ins>
</div>
<div class="product-rate">
<div class="product-rating" style="width:100%"></div>
</div>
<div class="product-extra-link">
<a href="#" class="wishlist-link"><i class="fa fa-heart-o" aria-hidden="true"></i><span>Wishlist</span></a>
<a href="#" class="addcart-link">Add to cart</a>
<a href="#" class="compare-link"><i class="fa fa-compress" aria-hidden="true"></i><span>Compare</span></a>
</div>
</div>
</div>
</ng-container>
</div>
</div>
</div>
</div>
</div>
</div>
</ng-container>
No-Rendered Products
Rendered Products
angular6
add a comment |
I'm currently developing an application under angular version 6 which implements a template that had html, css, js, bootstrap and jquery among other technologies dependent on jquery, the problem I have is that I am implementing a slider that came with the template to show some products through NgFor , initially when you load the page does not render neither the images nor the information of the products as such, nor the styles css, but once I reload the page with cache it shows everything correctly, attached code and screenshots, thank you!
<ng-container>
<div class="row">
<div class="col-md-12 col-sm-10 col-xs-6">
<div class="tab-content">
<div id="tab3" class="tab-pane active">
<div class="product-slider product-slider1">
<div class="wrap-item" data-pagination="false" data-navigation="true" data-itemscustom="[[0,1],[768,2],[1024,3],[1200,4]]">
<ng-container *ngFor="let prod of productFinal">
<div class="item-product item-product1 style2 text-center">
<div class="product-thumb">
<a href="/detail" class="product-thumb-link rotate-thumb">
<img src="{{prod.images}}" alt="">
<img src="{{prod.images}}" alt="">
</a>
<a href="/quick" class="quickview-link fancybox fancybox.iframe"><i class="fa fa-search" aria-hidden="true"></i></a>
</div>
<div class="product-info">
<h3 class="product-title"><a href="/detail">{{prod.name_product}}</a></h3>
<div class="product-price">
<ins class="color"><span>€30.000</span></ins>
</div>
<div class="product-rate">
<div class="product-rating" style="width:100%"></div>
</div>
<div class="product-extra-link">
<a href="#" class="wishlist-link"><i class="fa fa-heart-o" aria-hidden="true"></i><span>Wishlist</span></a>
<a href="#" class="addcart-link">Add to cart</a>
<a href="#" class="compare-link"><i class="fa fa-compress" aria-hidden="true"></i><span>Compare</span></a>
</div>
</div>
</div>
</ng-container>
</div>
</div>
</div>
</div>
</div>
</div>
</ng-container>
No-Rendered Products
Rendered Products
angular6
Could you make a jsfiddle.net?
– deathangel908
Jan 3 at 13:39
add a comment |
I'm currently developing an application under angular version 6 which implements a template that had html, css, js, bootstrap and jquery among other technologies dependent on jquery, the problem I have is that I am implementing a slider that came with the template to show some products through NgFor , initially when you load the page does not render neither the images nor the information of the products as such, nor the styles css, but once I reload the page with cache it shows everything correctly, attached code and screenshots, thank you!
<ng-container>
<div class="row">
<div class="col-md-12 col-sm-10 col-xs-6">
<div class="tab-content">
<div id="tab3" class="tab-pane active">
<div class="product-slider product-slider1">
<div class="wrap-item" data-pagination="false" data-navigation="true" data-itemscustom="[[0,1],[768,2],[1024,3],[1200,4]]">
<ng-container *ngFor="let prod of productFinal">
<div class="item-product item-product1 style2 text-center">
<div class="product-thumb">
<a href="/detail" class="product-thumb-link rotate-thumb">
<img src="{{prod.images}}" alt="">
<img src="{{prod.images}}" alt="">
</a>
<a href="/quick" class="quickview-link fancybox fancybox.iframe"><i class="fa fa-search" aria-hidden="true"></i></a>
</div>
<div class="product-info">
<h3 class="product-title"><a href="/detail">{{prod.name_product}}</a></h3>
<div class="product-price">
<ins class="color"><span>€30.000</span></ins>
</div>
<div class="product-rate">
<div class="product-rating" style="width:100%"></div>
</div>
<div class="product-extra-link">
<a href="#" class="wishlist-link"><i class="fa fa-heart-o" aria-hidden="true"></i><span>Wishlist</span></a>
<a href="#" class="addcart-link">Add to cart</a>
<a href="#" class="compare-link"><i class="fa fa-compress" aria-hidden="true"></i><span>Compare</span></a>
</div>
</div>
</div>
</ng-container>
</div>
</div>
</div>
</div>
</div>
</div>
</ng-container>
No-Rendered Products
Rendered Products
angular6
I'm currently developing an application under angular version 6 which implements a template that had html, css, js, bootstrap and jquery among other technologies dependent on jquery, the problem I have is that I am implementing a slider that came with the template to show some products through NgFor , initially when you load the page does not render neither the images nor the information of the products as such, nor the styles css, but once I reload the page with cache it shows everything correctly, attached code and screenshots, thank you!
<ng-container>
<div class="row">
<div class="col-md-12 col-sm-10 col-xs-6">
<div class="tab-content">
<div id="tab3" class="tab-pane active">
<div class="product-slider product-slider1">
<div class="wrap-item" data-pagination="false" data-navigation="true" data-itemscustom="[[0,1],[768,2],[1024,3],[1200,4]]">
<ng-container *ngFor="let prod of productFinal">
<div class="item-product item-product1 style2 text-center">
<div class="product-thumb">
<a href="/detail" class="product-thumb-link rotate-thumb">
<img src="{{prod.images}}" alt="">
<img src="{{prod.images}}" alt="">
</a>
<a href="/quick" class="quickview-link fancybox fancybox.iframe"><i class="fa fa-search" aria-hidden="true"></i></a>
</div>
<div class="product-info">
<h3 class="product-title"><a href="/detail">{{prod.name_product}}</a></h3>
<div class="product-price">
<ins class="color"><span>€30.000</span></ins>
</div>
<div class="product-rate">
<div class="product-rating" style="width:100%"></div>
</div>
<div class="product-extra-link">
<a href="#" class="wishlist-link"><i class="fa fa-heart-o" aria-hidden="true"></i><span>Wishlist</span></a>
<a href="#" class="addcart-link">Add to cart</a>
<a href="#" class="compare-link"><i class="fa fa-compress" aria-hidden="true"></i><span>Compare</span></a>
</div>
</div>
</div>
</ng-container>
</div>
</div>
</div>
</div>
</div>
</div>
</ng-container>
No-Rendered Products
Rendered Products
angular6
angular6
edited Jan 3 at 13:41
Robert Triana
asked Jan 3 at 13:37
Robert TrianaRobert Triana
11
11
Could you make a jsfiddle.net?
– deathangel908
Jan 3 at 13:39
add a comment |
Could you make a jsfiddle.net?
– deathangel908
Jan 3 at 13:39
Could you make a jsfiddle.net?
– deathangel908
Jan 3 at 13:39
Could you make a jsfiddle.net?
– deathangel908
Jan 3 at 13:39
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54023405%2fslider-problem-with-angular6-and-bootstrap3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54023405%2fslider-problem-with-angular6-and-bootstrap3%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you make a jsfiddle.net?
– deathangel908
Jan 3 at 13:39