Im using scrollspy in angular6 along with uiRouter for routing now i cannot navigate to an html inner element with href=#id, it is going into url not going to particular div.
i have defined if any wrong url redirect to home in appmodule.ts as shown below.. so whenever i click an anchor tag having href="#id" it redirecting to home page... is there any solution for this abnormal behaviour??
UIRouterModule.forRoot({
states: APP_STATES,
useHash: true,
otherwise: { state: 'home' },
config: routerConfigFn,
deferIntercept: true,
}),