Re: [AngularJS] Outer-directive and inner-directives

2014-08-19 Thread alycklama
Thanks for the comment! I've implemented the call-back to the parent successfully, although the performance is still as bad as it was earlier. It seems to be that it still iterates through all of the DOM elements one-by-one. $element.find(a.tooltips).tooltip(); $('a.tooltips').tooltip(); I

[AngularJS] Outer-directive and inner-directives

2014-08-18 Thread alycklama
I'm having some difficulties grasping some basic angular flows and techniques. Is it possible for the outer-directive to know when the inner-directives have been finished? outer-directive inner-directive/inner-directive inner-directive/inner-directive inner-directive/inner-directive

Re: [AngularJS] Outer-directive and inner-directives

2014-08-18 Thread alycklama
That's exactly what I thought, but unfortunately it is not working. table - controller table - preLink table - postLink tooltip - controller tooltip - preLink tooltip - postLink I would have expected the output below: table - controller tooltip - controller table - preLink tooltip - preLink

[AngularJS] [Directive] $watch a javascript variable and dual-bind to ngModel

2014-04-22 Thread alycklama
I created a wrapper around the Select2 library for autocompletion and so far everything works great! The only thing that I'm wondering is this: - How do I get the selected value / values back to Angular?? In the link function I would need to call to method below to get the value: element(val)