Answer the question
In order to leave comments, you need to log in
Is it appropriate to send data from the directive directly to the service?
For example, instead of giving the result to the controller like this:
<calculate numbers="[5,6]" result=" _переменная_из_$scope_контроллера_ "></calculate>
<concat strings="[ 'hello', 'world' ]" result=" _переменная_из_$scope_контроллера_ "></concat>
Answer the question
In order to leave comments, you need to log in
Am I violating the angular-way approach in this way?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question