You need to sign in to do that
Don't have an account?
Caleb Kuester
Trailhead CampingList Component Stuff
Greetings! I'm at it again. This time, I have working code.
The problem is:
"Challenge Not yet complete... here's what's wrong:
The campingList component isn't iterating the array of 'items' and creating 'campingListItem' components."
So for starters, I can say that it is.
My campingList component contains this code.
^This is after a couple of entries.
Is this a common problem? Does anybody else have experience with this? I didn't post all of my code to keep this as short as possible. If required, I can certainly do so.
Additionally, the entirety of the code that generates this is directly from the Trailhead example... copy/paste, but with the variable names renamed appropriately. If my code fails to meet their criteria, then so does theirs.
The problem is:
"Challenge Not yet complete... here's what's wrong:
The campingList component isn't iterating the array of 'items' and creating 'campingListItem' components."
So for starters, I can say that it is.
My campingList component contains this code.
<aura:iteration items="{!v.items}" var="item"> <c:campingListItem campingListItem="{!item}"/> </aura:iteration>I don't know how it could possibly resolve this problem any better than "correct." I know that it's iterating through them because:
^This is after a couple of entries.
Is this a common problem? Does anybody else have experience with this? I didn't post all of my code to keep this as short as possible. If required, I can certainly do so.
Additionally, the entirety of the code that generates this is directly from the Trailhead example... copy/paste, but with the variable names renamed appropriately. If my code fails to meet their criteria, then so does theirs.
There are different solutions in the below post for similar discussion I was able to pass this challenge from below post.Please refer that can help you to solve your issue.
https://developer.salesforce.com/forums/?id=906F0000000kDD0IAM
This code worked for me.
campingList.cmp:
campingController.cmp:
campingItem.cmp:
Hope this helps you!
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards
Sandhya
I don't know what exactly went wrong, but they do exactly the same thing. I want to find out what may have gone wrong, but realistically, I won't have the time and I just found a separate (minor) issue where Trailhead is providing outdated information.
Thanks,
-Caleb