.when('/FOO', {
templateUrl: 'app/components/forums/id/forums.php'
})
<td><a ng-click="setRoute('FOO')"href="forums.php?id=<?= $f_id;?>"><?php echo $f_name;?></a></td>
Soooo.
Some background. I'm making a forum, I want to do it with AngularJS.
F_id and F_name has been declared earlier. (Not really relevant to the problem here.)
What I want to do, is dynamic routing. How can I make angular to work with the php's ?id=id mechanism? So that when I click on that forum it will open the right forum?
- Dynamic routing, how?