3

Angular Routing(In my app-routing.module.ts)

@NgModule({
    exports: [ RouterModule ],
    imports: [ RouterModule.forRoot(routes) ],
    declarations: []
})

In index.html I have added <base href="/">

But in the URL I can see the # My application is deployed on JBoss AS 7.1.1 Server

2

1 Answer 1

1

In your app module do this. Find more information in here about hash location strategy.

@NgModule({
  imports: [
  // other imports
    RouterModule.forRoot(routes, { useHash: false })
  ],
  declarations: [
  ],
  providers: [

  ],
  bootstrap: [ AppComponent ]
})
export class AppModule { }
Sign up to request clarification or add additional context in comments.

1 Comment

I doubt this is the case

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.