AngularJS : why use "factory" when you say "services"? -
AngularJS : why use "factory" when you say "services"? -
this maybe stupid question, maybe it's wordings. learning angularjs , reading lots of article, saw unusual happens. lots of people "use services", in code utilize "factory" instead.
for example, these question : pass variables angularjs controller, best practice?, angularjs sharing methods between controllers
why people 'a' , using 'b', can't "you can utilize factory" ? inquire question because saw more few time, confuse me ...services , mill 2 different thing, right ?
there no difference between 2 other 1 new'ed while other not. other that, both singletons , injectable. utilize them in pretty much same way.
i confused you, because of similarity, tend utilize term interchangeably.
angularjs service
Comments
Post a Comment