vendredi 20 mai 2016

Dynamic route code does nothing

This is my twiddle to be more clear :

http://ift.tt/1qyQdSu

I am trying to make a dynamic route. When I click a picture it should go to its detail page with different URL and different content. Like, when I click on the first pic it should go to localhost:4200/pic/1 or localhost:4200/1.

I'm trying to do the URL dynamic but I can't so far, when I click a picture it does nothing. What am I doing wrong?

Also, at the beginning I created routes and templates for every picture but with bigger data it won't be possible. How am I gonna handle this?




Aucun commentaire:

Enregistrer un commentaire