--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/S-a_SLp3MyM/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Ah no. The point is, the select's options get updated through two-way-data binding.<select ng-options="value.id as value.label for (key,value) in someOptions" ng-model="someValue"></select>Where 'someOptions' gets updated through controllor. This again, updates the options because of two-way-data binding and the directive has then to make a task.
On Fri, Jun 7, 2013 at 10:36 AM, Clemens Capitain <ckcap...@gmail.com> wrote:
Maybe you could use ng-click on every option element to kickoff a specific task?Like<option ng-click="doSomething()">execute task 1</option>
Am Freitag, 7. Juni 2013 10:26:39 UTC+2 schrieb Pascal Precht:Hey guys,I have a directive which is restricted as an attribute on select elements. Since the directive does some DOM manipulation on the select's options, it has to trigger a specific task everytime the options one the select change.Is there any way to check within a directive's link function, if the options of the select has been changed?Sth. likescope.$watch(checkIfoptionsChanged, function (value) {doSomethingWith(value);});Couldn't find anything in the web..
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/S-a_SLp3MyM/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+unsubscribe@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
--/pp
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
--/pp