Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having first control in the page with tabs to be focused
Message
 
 
General information
Forum:
AngularJS
Category:
Troubleshooting
Miscellaneous
Thread ID:
01655956
Message ID:
01655969
Views:
39
>Do you mean you tried the ng-focus directive in angularjs ?

I didn't yet try ng-focus, let me try it. How should I use ng-focus to focus the first element?

I tried using just focus="true" (for all controls in a loop) but this didn't work. I think my problem is that I'm using nav-tabs. I found related discussion but it's a bit over my head

https://stackoverflow.com/questions/24491779/set-focus-to-an-input-within-a-bootstrap-tabcontent-on-tab-change

and I don't know how should I incorporate that in my own code.

BTW, can you please also help with my other thread? When I left to sleep last night (I worked till 12 am) I realized my solution is not going to work in the case my message returns nothing and I do want the Save to fire. Right now it sort of works because I was testing with returning my error message.

I am not sure how to get the logic to work, e.g. have my method that may call server call return its result and only after that fire the Save if it's OK.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform