Sander, you might be right on how that works internally as I said I'm a
total newbe to angular.
When I wrote that piece of code I assumend that ng-repeat will take care of
the {{key}} changing it to an id (e.g. 'id1') and then my custom directive
will take over and bind it's isolated scope to already evaluated element.
When I tested I also made ng-repeat on simple div and that created expected
result (got list of divs with resolved element attribute) and that pushed
me deeper into error :).
I guess what is confusing for me is the fact that I came to believe that
anything that angular will evaluate and place in template has to be in {{
]}. In this case collection[key] the key seems odd. Apparently this
impression is wrong.
Anyway, thanks again for all the help!
Michał
On Thu, Oct 16, 2014 at 5:38 PM, Sander Elias <[email protected]> wrote:
> Hi Michal,
>
> I just looked at your sample. It's evaluated all-right, but you can't
> expect angular to evaluate your expression twice, and that's what would be
> needed for that!
>
> Regards
> Sander
>
> --
> 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/Qn15OWje7m0/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>
--
Best regards,
Michał Kocztorz
Skype ID: michal_kocztorz
Polcode SA
ul. Hoża 13, 00-528 Warszawa
http://www.polcode.com/
T: +48 22 825 50 47
Spółka zarejestrowana w Sądzie Rejonowym dla m.st. Warszawy XII, Wydział
Gospodarczy KRS pod numerem 0000482235, NIP PL 701-021-72-88, o kapitale
zakładowym 300.000 zł, wpłaconym w całości.
--
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.