angularjs

  • Stack Overflow works best with JavaScript enabled
  • I try to handle an Angularjs 1 project by using classes, I have created class as the following
  • Browse other questions tagged angularjs service or ask your own question .
  • The jquery fn is not available for Project as in Project.fn .
  • sign up log in tour help

my question is where to use my setters?
Do I have to handle this by returning the data to controllers or the way I use here is the best one?

@iMomenUI: Help my find a suitable answer

#AngularJS #FrontEnd #Class #OOP #Object_Orinted #Javascript

I try to handle an Angularjs 1 project by using classes, I have created class as the following

Now I set the obj attr. in the same class as following:

my question is where to use my setters? Do I have to handle this by returning the data to controllers or the way I use here is the best one?

angularjs