The angular router is meant to provide the routes within the angular app and has no inherent external routing.
You could route to an almost empty component that redirects to your external link. That seems to be the simplest solution.
app-routing.module.ts
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { BlogComponent } from './blog/blog.component';
const routes: Routes = [
{ path: 'blog', component: BlogComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
blog.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
template: ''
})
export class BlogComponent implements OnInit {
ngOnInit(): void {
window.location.href = 'http://example.com/blog';
}
}
PS: Ensure you can access your wordpress installation without being redirected to the angular app by your server.