Skip to content

Instantly share code, notes, and snippets.

View veerendrakumar-github's full-sized avatar

Vallepu veerendra kumar veerendrakumar-github

  • HCL Technologies
  • Hyderabad
View GitHub Profile
anonymous
anonymous / AngularJS-ngRepeat-Drag-n-Drop.markdown
Created May 15, 2014 07:29
A Pen by Anonasaurus Rex.
@naxmefy
naxmefy / whenactive directive
Created November 22, 2013 20:16
Angular Directive for Menu State to Set Class Attributes or else to identify if it is active. Works with mainnavs and subitems. only add directive "when-active" to menuitems
.directive('whenActive',
[
'$location',
($location)->
scope: true,
link: (scope, element, attr)->
scope.$on '$routeChangeSuccess',
() ->
loc = "#"+$location.path()
href = element.attr('href')