.service() versus .factory(), the actual answer @toddmotto

  • A factory creates things, or at least can do.
  • As above, we can define some functions on an Object and return them.
  • We’ve learned that .service() is the constructor function, but is only invoked once that doesn’t mean we cannot create constructor Objects elsewhere that we can call with new .

Read the full article, click here.


@carmelolg: “#AngularJS
.service() versus .factory(), the actual answer”


I was giving a workshop earlier this week, and as the workshop came to a close and people were leaving, an attendee asked if I could explain the difference b…


.service() versus .factory(), the actual answer @toddmotto

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.