A
A
Anatoly Kuchin2019-07-24 15:20:18
Angular
Anatoly Kuchin, 2019-07-24 15:20:18

Should we export AppComponent?

Hello. I receive data via http in app.component.ts. How to sync or pass data from app.component.ts component to another component?
If you export AppComponent, then two objects come.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2019-07-24
@devil40rus

https://angular.io/tutorial/toh-pt4#services

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question