EmberJs noob here. I am trying to do something pretty simple: display a list of albums represented by an image. When the user clicks the image, the album's photos are displayed underneath. Right now, I am able to loop through each album and display each album image. From there I am able to click the link which is an Ember action link and display the number of photos in the album. I have created a JS Bin item to demonstrate this:
As a noob, I tried to pass into the link click event handler the album's photos thinking that I could assign that array to the AlbumController's albumPhotos property then loop through my photos but that does not seem to be working.
Any ideas on what I am doing wrong? Also, any suggestions on best practices on how to organize this code would also be much appreciated. Thanks