>>>I just added this line into it
>>>
>>> if (element[0].disabled = "false")
>>>
>>>Not sure, if correct at all or not. Will try it out.
>>>
>>>UPDATE 2. Adding this line made control show disabled, so I removed it from the directive.
>>>
>>>Thanks in advance.
>>
>>= is assignment. Use ===
>
>I think I got the idea I thought of originally implemented. See my solution and discussion here
>
>
http://stackoverflow.com/questions/24966135/conditional-focus/24978138#24978138>
>Since I am very new to AngularJs I may be not using best practices. If you can check my implementation, can you tell if it's OK?
>
>Thanks in advance.
Looks OK me - but that doesn't mean a lot. :-}