Ngx-admin: Has anyone made a page anchor work?

Created on 15 Nov 2016  路  3Comments  路  Source: akveo/ngx-admin

  • I want to make a page anchor work, but it doesn't scroll to the anchor.
    I have a page with links to page anchors further down the page. When I click the links, the URL changes but the page doesn't scroll down like I would expect. Everything else seems to be working correctly. Is there something about the theme which might prevent the scroll down?

I start on my routed page:
http://localhost:3000/#/mypage/999999

I have a link like this:
examples

When I click it the page address changes to:
http://localhost:3000/#/mypage/999999#examples

But I am still at the top of the page.

My anchor looks like:
<a name="examples"></a>

All 3 comments

try solution here: http://stackoverflow.com/questions/36101756/angular2-routing-with-hashtag-to-page-anchor

also, note that this solution configures angular to use hashtags for url handling. This can be set to false in the app.routing.ts file by changing the 'useHash' setting to false.

Try this:

+-----------HTML--------------------------------------+
...

Closing due to inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

argnist picture argnist  路  4Comments

maxlein picture maxlein  路  3Comments

nsankaranarayanan picture nsankaranarayanan  路  3Comments

hoswey picture hoswey  路  3Comments

dreamerleolioa picture dreamerleolioa  路  4Comments