如何创建AngularJS指令得到jQuery的对话与回车键的preSS提交 [英] How to create AngularJS directive to get jquery Dialog with submit on press of enter button
问题描述
在我的AngularJS应用程序,我需要创建类似的东西来 jQuery的模态对话框形式向从用户那里得到的用户名。
In my AngularJS app, I need to create something similar to jQuery modal form Dialog to get username from user.
我已经使用 Twitter的引导模式,并的 AngularUI对话框。这两个短落在两件事情:
I have used twitter-bootstrap modal and AngularUI dialog . Both of which fall short on two things:
- 无法得到自动对焦。只要模式打开模态在
用户名
文本框。 - 无法上输入按钮的preSS提交的用户名。
下面是我与Twitter的引导较早尝试失败的 PLUNKER 。现在,我想看看是否已经有一定的指导存在符合我的1和2的具体需要。
Here is PLUNKER of my earlier failed attempt with twitter-bootstrap. Now, I am looking to see if there is already some directive exists which meets my 1 and 2 specific need.
推荐答案
我得到了 1
通过替代解决方案的工作
<一href=\"http://stackoverflow.com/questions/17599504/why-focus-on-textbox-is-not-set-inside-a-tweeter-bootstrap-modal-popup-by-angu\">Why专注于文本框不被AngularJS
I got 1
working through alternate solution
Why focus on textbox is not set inside a tweeter-bootstrap modal (popup) by AngularJS
这篇关于如何创建AngularJS指令得到jQuery的对话与回车键的preSS提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!