@Vartex05 wrote:
Hi, i have a simple question about Services. If i got for example UserPage,where i want to display list of Users. So i Inject UserService(which gets data from db and saves it into UserList property) into UserPage constructor. Now there are two options how to access data from UserService. First one is to simply directly access UserList property on UserService. Second one is to create getter in UserService, and use it in UserPage. Which one is better practice?
Posts: 1
Participants: 1