gkielwasser
2013-02-17 16:23:30 UTC
Hi,
I have represented a list of events as follow.
I have 2 directives, "*eventsDir*" directive which is a list of "*eventDir*"
directive. These both directives do NOT have an isolate scope.
The eventsDir is listing events which are present in the root scope in the
"events" variable. "filterevent" filter the events(present in the root
scope) thanks to parameters which are in the root scope.
<eventsDir>
<eventDir></eventDir>
<eventDir></eventDir>
<eventDir></eventDir>
<eventDir></eventDir>
<eventDir></eventDir>
</eventDir>
*eventsDir *content these 2 lines:
1 - {{events | filter : filterevent}}
2 - <eventDir ng-repeat="event in events | filter :
filterevent"></eventDir >
When i'm changing the parameters of the filter, the ng-repeat *is not
refreshed according to the filter*. However, the line 1 print *the right
filtered list*.
Can you explain what I'm misunderstanding?
thanks!
I have represented a list of events as follow.
I have 2 directives, "*eventsDir*" directive which is a list of "*eventDir*"
directive. These both directives do NOT have an isolate scope.
The eventsDir is listing events which are present in the root scope in the
"events" variable. "filterevent" filter the events(present in the root
scope) thanks to parameters which are in the root scope.
<eventsDir>
<eventDir></eventDir>
<eventDir></eventDir>
<eventDir></eventDir>
<eventDir></eventDir>
<eventDir></eventDir>
</eventDir>
*eventsDir *content these 2 lines:
1 - {{events | filter : filterevent}}
2 - <eventDir ng-repeat="event in events | filter :
filterevent"></eventDir >
When i'm changing the parameters of the filter, the ng-repeat *is not
refreshed according to the filter*. However, the line 1 print *the right
filtered list*.
Can you explain what I'm misunderstanding?
thanks!
--
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 angular+***@googlegroups.com.
To post to this group, send email to ***@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.
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 angular+***@googlegroups.com.
To post to this group, send email to ***@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.