📜  启用锚滚动角度 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:20.156000             🧑  作者: Mango

代码示例1
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)