Hi Sander,

Thanks for the advice.

I'm already putting most of logic code in services, but what about code 
that is directly related to the component behavior:

   - Creating the form, initializing it, subscribe to different observable
   - handle behavior on observable event like showing/hiding something, 
   opening a modal
   - updating the form with computed values
   - ...

It does not seems logic to me to put this code in a services as it's 
directly related to the component itself.

That's why I'm using EditComponent and EditDialogComponent abstract class 
to regroup component specific code per type of component. But I still need 
Concat component code sharing.

Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to