Skip to content

Instantly share code, notes, and snippets.

@jeonghwan-kim
Created April 2, 2015 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeonghwan-kim/a3932b62d74cbcb452e2 to your computer and use it in GitHub Desktop.
Save jeonghwan-kim/a3932b62d74cbcb452e2 to your computer and use it in GitHub Desktop.
$anchorScroll example
'use strict';
angular.module('myApp')
.controller('FaqCtrl', function ($scope, $location, $anchorScroll) {
$scope.scrollTo = function(id) {
$location.hash(id);
$anchorScroll();
}
});
@bharadwajasa
Copy link

sdfdfdaD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment