Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angularjs smooth scroll css

//in angularjs controller
$scope.gotoDiv = function (anchor) {
        if ($location.hash() !== anchor) {
            $location.hash(anchor);

        } else {
            $anchorScroll();
        }
};
 
PREVIOUS NEXT
Tagged: #angularjs #smooth #scroll #css
ADD COMMENT
Topic
Name
5+8 =