I have a set up where I am trying to use my JSON object to create the URL strings in an ng-repeat. The text is viewable when inspected in the broswer, yet it doesn't work, or console log an error.
The HTML looks like this:
<div ng-repeat="project in projects">
<div ng-click="go('/projects/{{project.url}}')"></div>
</div>
I parse the $location service in to my controller, and then use the following to change the page url (please note, I have checked this works using non-dynamic URLs in the view):
$scope.go = function (path) {
$location.path(path);
};
An example of the JSON object I am using, looks like this:
$scope.projects = [
{
url: 'paul-davis'
}
];
{{}}...waaait, try this (removing some quotes) ::ng-click="go('/projects/'project.url)"goget called?