rycirese
rycirese

Reputation: 199

Angular managing routes with domain prefix

Say I have a website https://example.com and I want to have a domain prefix for the blog area like this: https://blog.example.com. How could you manage the routing for this with angular?

Upvotes: 0

Views: 145

Answers (1)

Anthony Giretti
Anthony Giretti

Reputation: 327

it's not the same app, routing is made to navigate within the same app.

You should use href property like this:

<a [href]="{{blogUrl}}">https://blog.example.com</a>

Upvotes: 1

Related Questions