Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

enable anchor scrolling angular

const routerOptions: ExtraOptions = {
  useHash: false,
  anchorScrolling: 'enabled',
  // ...any other options you'd like to use
};

// then just import your RouterModule with these options

RouterModule.forRoot(MY_APP_ROUTES, routerOptions)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enable #anchor #scrolling #angular
ADD COMMENT
Topic
Name
4+2 =