In my Angular application, I have multiple rows of elements that are wrapped with the myelement
directive (which is a wrapper for the input
tag). To highlight or focus on one of these elements at a time, I apply the .selected
class in the styles.
Everything in my application is working smoothly except for focusing on the input
tag, which should be bound by the CSS class selected
. In other words, whenever an element has the class selected
, the corresponding input
tag should receive focus. How can I achieve this?
<!doctype html>
<html>
...
</html>