Angular-Keypad不起作用

时间:2017-07-27 07:07:13

标签: angularjs

我必须创建一个Mock功能,允许用户通过屏幕拨号。问题在于选择特定的键盘,该号码没有出现在与其绑定的文本框中。

The console showing the number clicked

   [OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "GetDataString/{value}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
public List<GL_AccMainTypeListItem> GL_AccMainType_GetAll()
{

        DataAccessService da = new DataAccessService("usp_GL_AccMainTypeGetAll");
        DataTable dt = da.ExecuteDataTable();


        var acc = (from row in dt.AsEnumerable()
                     select new GL_AccMainTypeListItem
                     {
                         accMainTypeyNo = Utility.ToInt(row["accMainTypeNo"]),
                         mainType = Utility.ToString(row["mainType"]),
                         startAccNo = Utility.ToInt(row["startAccNo"]),
                         endAccNo = Utility.ToInt(row["endAccNo"])

                     });

        return acc.ToList();

}

<input type="text" class="form-control" data-ng-model="phone_number"></input>
<bc-keypad bc-number-model="phone_number"></bc-keypad>

下面是我的config.js,其中我添加了我的依赖

module.exports = {
  client: {
lib: {
  css: [
     'public/lib/angular-keypad/dist/angular-keypad.css'
  ],
  js: [
     'public/lib/angular-keypad/dist/angular-keypad.js'
  ]
 },
};

我的控制器代码如下:

var applicationModuleVendorDependencies = ['..','..'bc.AngularKeypad'];

我正在使用ng-keypad打开角色js并使用以下链接创建拨号器。

Creating Dialer using angulerjs

0 个答案:

没有答案
相关问题