Angular-2-Page-Slider icon indicating copy to clipboard operation
Angular-2-Page-Slider copied to clipboard

Not displaying imgs

Open Hazarzir opened this issue 7 years ago • 5 comments

Hey! Super nice work here!! I've used it in my project... Problem is- the component appears in the DOM, but first, it has a css property- overflow: hidden. Only once I cancel it the component appears in the DOM. But the bigger problem for me is that the imgs are not there in the DOM... First I used the default paths of the "hero" example. Didn't work.

Only after I created a new folder under my Angular's "assets" folders, named it "img" and added 2 png files there. I changed the paths in the pages array: public pages = [ {image: '../../assets/img/pepperoni_pizza.jpg'}, {image: '../../assets/img/sushi.jpg'} ];

Still... not workong... Am I missing something out?

TNX!!!!!!

Hazarzir avatar Aug 11 '17 11:08 Hazarzir

Hmm, I'm not sure I understand the problem well enough to help out. Can you put together a jsfiddle or something like that?

Generally, overflow: hidden is necessary to keep elements from one page from jutting out into another. Are you using CSS floats or absolute positioning or something like that? Those may cause the page to measure its height as 0px, which would then cause everything to be hidden.

I can't speak to your image loading issue. Do you think that's related to this component or could it be something about how you're serving or compiling the app?

KeatonTech avatar Aug 13 '17 18:08 KeatonTech

I have the same issue. I installed and followed rules, i can see empty, when i disable overflow:hidden i can see buttons and use prev next

nukec avatar Nov 04 '17 17:11 nukec

+1

ghost avatar Nov 06 '17 12:11 ghost

since this is outdated and not maintained anymore, i just created my stuff in angular, it's very simple and straight forward.

nukec avatar Nov 06 '17 13:11 nukec

Yeah i know its simple, but i needed this for a quick display project. If someone else has reached this page with similar needs. I would suggest using angular2-useful-swiper. Its pretty straight forward and easy to use.

ghost avatar Nov 06 '17 13:11 ghost