Skip to content

Instantly share code, notes, and snippets.

@jasonkuhrt
Created September 15, 2012 14:11
Show Gist options
  • Save jasonkuhrt/3728139 to your computer and use it in GitHub Desktop.
Save jasonkuhrt/3728139 to your computer and use it in GitHub Desktop.
Angular js directive for helping make traditional anchors work
directive_anchorable = ($anchorScroll)->
(scope, el, attrs)->
attrs.$observe attrs.id, ->
$anchorScroll()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment