Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Services best practises

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>