[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)
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:
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!