Thursday, 15 April 2010

Ember.js: Which one should I choose between Namespace, Service, and Util? -


I am currently working on the Amber CLI application. Now checking the strategy of implementing certification.

Now, I am planning to create Auth.js, which will maintain the login status and take action.

For example, they are using "namespace", but have put it in the UILLL folder.

I also feel like an amber. The service is suitable for putting Auth.js.

It seems that both namespace and service are the nicknames for amber objects.

What kind of rules should I apply?

I actually answered the same question. Long story short: Do not waste your time and usage, you'll save working hours :) It is a very flexible library that can handle different authentication / authorization mechanisms in parallel and separate tabs of the browser.

Otherwise, amber services are the way to go!


No comments:

Post a Comment