角度ng模型无法获得价值

时间:2017-10-19 13:54:32

标签: angularjs

您可以帮助获取ng模型数据

<input type="text" class="form-control" ng-model = "DateSchedule" required>
<button type="submit" ng-click="saveReservation()" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-plus"></i> Schedule</button>

在脚本中我已经放置了控制器和应用程序

alert($scope.DateSchedule);

它返回我未定义

感谢

0 个答案:

没有答案