Hi! Got stucked recently while trying to use 'eui-filter' on radio buttons. Trying to directly use the same approach as for checkboxes seemed to be a waste of time. It just can't find filters scope, I have found later, that radio's init a new scope in angular, but using '$parent.' scope seems to have no use too.
I found some workaround as follows:
But I'm new to AngularJS, and I have feeling that there should be better solution using built-in ElasticUI directives.
Anyway, maybe my solution would help someone not to waste 3 hours of their precious time ;)
Hi! Got stucked recently while trying to use 'eui-filter' on radio buttons. Trying to directly use the same approach as for checkboxes seemed to be a waste of time. It just can't find filters scope, I have found later, that radio's init a new scope in angular, but using '$parent.' scope seems to have no use too. I found some workaround as follows:
In html:
And in js:
But I'm new to AngularJS, and I have feeling that there should be better solution using built-in ElasticUI directives. Anyway, maybe my solution would help someone not to waste 3 hours of their precious time ;)