angular - Separating data from the component -


so trying learn angular 2 , reading documentation , saw found here:

we defining our data directly inside our component. that's fine demo isn't best practice. it's not practice. although won't in chapter, we'll make mental note fix down road.

my question best practice place data? read farther documentation , wasn't clear. guess in service of component?

dynamic data should loaded via services. if have static data can place in mock file. here example tour of heroes (you reach point later).


Popular posts from this blog

java - Cannot send AES encrypted messages of over 47 characters -

php - How to set default value of a select dynamically from database using smarty? -

telerik - Reformat image format in PDF -