如何创建AngularJS指令得到jQuery的对话与回车键的preSS提交 [英] How to create AngularJS directive to get jquery Dialog with submit on press of enter button

查看:139
本文介绍了如何创建AngularJS指令得到jQuery的对话与回车键的preSS提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的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:


  1. 无法得到自动对焦。只要模式打开模态在用户名文本框。

  2. 无法上输入按钮的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆