Hi All,

I am learning Angular2 since a month. I have used angular2 router in my 
application and am using hash Location Strategy for Navigation in Angular 
app which is best suitable for my need.

Actually, I want to have anchor tag with href="*#someDivID*" for 
sub-navigation inside one page but each time it clicked angular2 Error pops 
up and ask for route which is not there. 

I have found that in Angular1.0 there is *$anchorScroll *which works fine 
after setting Location.Hash.

Do we have any equivalent in Angular2 for $*anchorScroll*?

Please help!!

 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to