AngularJS:ngModel $ formatters给出了undefined

时间:2018-04-19 09:50:58

标签: javascript angularjs formatter angularjs-ng-model

以下是我设计的手机格式化程序示例:

<input type="text" ng-model="phoneNumber" my-phone />

这是一个用法示例

viewValue

但是不起作用, using System; using System.Web.UI; using DevExpress.Web.ASPxScheduler; using DevExpress.Web.Demos; using System.Web.UI.WebControls; public partial class Miscellaneous_DateNavigator : System.Web.UI.Page { protected void Page_Init() { DemoHelper.Instance.ControlAreaMaxWidth = Unit.Percentage(100); } protected void Page_Load(object sender, EventArgs e) { SchedulerDemoUtils.ApplyDefaults(this, ASPxScheduler1); SchedulerDemoUtils.ApplyWorkTime(this, ASPxScheduler1); DataHelper.SetupDefaultMappings(ASPxScheduler1); DataHelper.ProvideRowInsertion(ASPxScheduler1, myDataSource); DataHelper.SetupStatuses(ASPxScheduler1); DataHelper.SetupLabels(ASPxScheduler1); ASPxScheduler1.DataBind(); ApplyDateNavigatorProperties(); } void ApplyDateNavigatorProperties() { DateNavigatorProperties props = ASPxDateNavigator1.Properties; props.BoldAppointmentDates = chkBoldAppointmentDates.Checked; props.ShowTodayButton = chkShowTodayButton.Checked; props.ShowWeekNumbers = chkShowWeekNumbers.Checked; ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.NotifyVisibleIntervalsChanged); } } 始终未定义。有什么想法吗?

0 个答案:

没有答案