When used as name it a string, when used in the ng-show directive it is 
evaluated as an expression and that name results on a lookup for an item in a 
dictionary.

Change the name :-)

Sent from my Amazing Yellow Lumia, typos are guaranteed ;-)
________________________________
From: Mauro Sanna<mailto:mrsan...@gmail.com>
Sent: 04/01/2014 23.31
To: angular<mailto:angular@googlegroups.com>
Subject: [AngularJS] complex names for input fields to use in ng-show.

I have an input field whose attribute name is: name="phones[{{$index}}].number"

I want use a ng-show like this:

ng-show="create_form.phones[$index].number.$dirty"

but it does not work perhaps because the complex name phone[$index].number.

How can I solve?

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
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+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to