Skip to content

Instantly share code, notes, and snippets.

@chreekat
Created November 6, 2012 20:11
Show Gist options
  • Select an option

  • Save chreekat/4027203 to your computer and use it in GitHub Desktop.

Select an option

Save chreekat/4027203 to your computer and use it in GitHub Desktop.
filter('fooLink', function () {
return function(g, curId) {
if (g.id === curId) {
return g.name;
} else {
return '<a href="/foo/' + g.id + '">' + g.name + '</a>';
}
}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment