This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Angular Carousel

 
Ranch Hand
Posts: 187
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to build a carousel for pictures of my dogs but for some reason I cannot get it to work... I found a tutorial online that uses a website to pull pictures but I want it from my local project.

I have a folder called “dogs” where I have all my dog code and then separate folders for each of my dogs pictures… basically I want to click on a link and then the carousel will show up all the pics for that dog. I understand I would have to create each caption etc for the pictures but for some reason it does not show the pics at all.

directory structure
\dogs
\dogs\dog1
\dogs\dog1\pictures
\dogs\dog2
\dogs\dog2\pictures
etc…

Any help would be greatly appreciated.

Here is my code:
dogs.component.ts


dogs.component.html
 
Rancher
Posts: 467
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to load files from the local pc using Javascript?  I thought it wasnt allowed.
Either way your html where you have the slides can be reduced to the html for one slide.  Theres an angular tag that will iterate through an array and put the appropriate data where you want it much like a jsp.
 
John Morgan
Ranch Hand
Posts: 187
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this include the labels and the description?  
 
Al Hobbs
Rancher
Posts: 467
6
IntelliJ IDE Spring Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have an object that has the label and description content in it then yes.
 
John Morgan
Ranch Hand
Posts: 187
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a search for "angular tag carousel", "angular tag carousel array", "angular only carousel" and variants there of... I can only find ones that offer up as a third party (ala slider, owl[which I did successfully implement], and a couple other) but nothing quite what I was looking for. Would you be so kind as to tell me the name of the tag?
 
Al Hobbs
Rancher
Posts: 467
6
IntelliJ IDE Spring Fedora
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://angular.io/tutorial/toh-pt2

I think its ng for
 
John Morgan
Ranch Hand
Posts: 187
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you... got it to work...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!