See in-lined...
On Mon, May 21, 2012 at 11:36 AM, bkc <
bkcle...@gmail.com> wrote:
> On Sunday, May 20, 2012 10:43:09 PM UTC-4, Vojta Jína wrote:
>>
>> How about this
http://jsfiddle.net/vojtajina/nycgX/ ?
>>
>
> Hmm, that's interesting. I added orderBy to better match my environment
>
http://jsfiddle.net/9u8Jz/1/ and it still works.
>
> It appears that var timer will be shared among all elements that use this
> directive, is that correct?
Yes, the directive is instantiated only once per injector lifecycle,
which in production means once.
>
> So only the most recently rendered input box will receive focus (in my case,
> that's ok).
Yes, that was my intent. You can't focus multiple inputs anyway.
>
> I'm curious how this works with orderBy. It seems like angular isn't
> regenerating all the html, but rather only generating the newly added input
> element but it then figures out where to insert it into the DOM. Is that
> correct?
Yes, that's correct. The reason is better performance.
>
> Thanks for the solution..
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/angular/-/HRGKWMlGskEJ.