Zyring Day 17 – Carousel Success

[Note: These are more in-depth (read: tedious) write-ups of my experience with each section of the Zyring project, leading on from my intro post on Zyring. This is mostly for my own benefit but could conceivably be of use to someone doing the project.]

Display information about a single apartment on a page (continued)

Boom! Used simonykq‘s solution on this thread and it worked beautifully. Nice to start the day with something working immediately.

I then ran into another issue that needed fixing – a problem with duplicate items in lists when using ng-repeat. This could be fixed by using the track by $index option, tracking by an object’s position in an array rather than its value. I’d seen this error come up before, nice to understand it!

OK, finally time to style the information a bit. I get as far as this:

Example apartment listing.

Example apartment listing.

Next time I plan to make this a bit fancier and more consistent with the styling of the previous pages. And hopefully find that off-by-one error… very close to finishing now!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s