till now we seen $http service, and $log service now we will see $location & $anchorScroll services.
$anchorScroll is a anjularjs service which helps to scroll the webpage to a specific element on the page.
$location is another anjularjs service which helps to append the element(##elementid) to url of the page for particular navigation.
Example :
$location.hash(elementid) --append to the url
till that specified id --$anchorscroll() ---will scroll the page.
$anchorScroll is a anjularjs service which helps to scroll the webpage to a specific element on the page.
$location is another anjularjs service which helps to append the element(##elementid) to url of the page for particular navigation.
Example :
$location.hash(elementid) --append to the url
till that specified id --$anchorscroll() ---will scroll the page.
No comments:
Post a Comment