P
P
Pogran2016-11-24 16:49:34
Angular
Pogran, 2016-11-24 16:49:34

Why are Tour Heroes requests going to app/heroes?

I can’t understand why requests in the dock https://angular.io/docs/ts/latest/tutorial/toh-pt6.html go exactly to app/heroes , because we didn’t indicate anywhere that we have such a router. connect only InMemoryWebApiModule

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Kayun, 2016-11-24
@Pogran

Routes have nothing to do with it, it's just an appeal to the server. This is just an example.

I
iBird Rose, 2016-11-24
@iiiBird

in app/app-routing.module.ts we include constants in the form const routes: Routes = [

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question