javascript - Angular ui router anchorscroll from another page -



javascript - Angular ui router anchorscroll from another page -

i want go 1 page , able scroll id section, not working.

the html is:

//page one.html <a href="#/posts#my-tickets"><u>where can see scanned tickets?</u></a> //page-two.html <div id="my-tickets">some text</div>

and controller:

function($scope,$location,$anchorscroll) { $location.hash($location.hash()); $anchorscroll(); }

javascript angularjs angular-ui-router

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -