Lehich782017-08-31 16:26:11
Lehich78, 2017-08-31 16:26:11

AngularJS how to store an object inside a service??

I need to create a space inside the service, how to do it??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
ozknemoy, 2017-09-01

using a regular setter to forward data to the service
this.setSomeData = (someData) => {
this.someData = someData;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question