Перейти к основному содержимому
0

Этот урок пока на английском.

One service, many components

The header shows your points, the leaderboard shows them, and a game adds to them. Instead of passing them around, keep them in one service and let Angular deliver it wherever it is needed.