Hi,

My last question 
(https://groups.google.com/forum/#!topic/angular/mM8aqCeIOTU) 
didn't get that much attention, therefore I try to be more specific now.

I try to create reusable select fields with encapsulated logic.

I don't want to replicate the logic to fetch the options based on 
parameters in every controller where I use the select field.

First solution was to create new element-directive with isolated scope.
The problem was with additional directives like ng-required and ng-model 
which I couldn't use.

The new solution now uses an attribute directive with isolated scope but 
accesses scope.$parent to set the options.

There are a few problems:
* options is not isolated, can be overwritten from outside
* if I make the scope not isolated I can't get the value from parameters

Are there some other ways to achieve something like this?

Thanks,
thomas


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to