Routing III

So I used the code below in the photo.html and instead of displaying values the view window displays the text used for code. The exercise accepted the code, but something is obviously wrong…

{{ photo.title }}

{{ }}

{{ photo.views | number }}

{{ photo.upvotes number }}

{{ photo.pubdate | date }}

` ![|690x495](upload://a9lVkYb5G7qUjXmfXL6ehvCKdh3.png)

Hello @krizevec,

have you defined the scope for the AngularJS app, and you should probably replace photo.blah with photos.blah.
Try out my suggestions and see if they work.

Barry Allen

1 Like

{{ photos.upvotes number }}

I had as

{{ photos.upvotes | number }}

If that also makes any difference.

In Photocontroller we had this line of code:

$scope.detail = data[$];

So that detail variable contains data of each photo object.
You must declaire {{detail.title}} instead of {{photo.title}}
The rest must also be done in the same way.