AngularJS with velocity
AngularJS with velocity
如何使用id获取html元素的值,而不使用ng-model
我尝试以速度获取数据到我的页面,我将此值设置为textarea,我可以让用户修改此元素的内容,为此我得到了我的数据。
问题是当用户修改元素的内容时,如何使用angularjs进行修改
我试着这样做
<textarea class="form-control" id="description" rows="2" data="" ng-model="demand.description" placeholder="">
$demand.description
</textarea>
在屏幕上我没有看到textarea
我已经用这种方式解决了问题,它不是很好,但我现在有什么
$scope.validateModification = function(){
$scope.demand.description = $('#description').val();
alert ($scope.demand.description);
//after i sent the $scope.Demand to server
}
<textarea name="description" id="description">$demand.description</textarea>
相关文章:
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 指令的模板必须只有一个根元素:With restrict E&替换true
- timeago.js with datatable and PHP
- Ajax and Json with Rails
- errors with Javascript try catch
- how to split a string with ','
- Understanding Javascript scope with "var that = this&qu
- Architecture for CPU intensive tasks with NodeJS & Socke
- 如何安装Jasmin:Velocity项目上的javascript测试工具
- How to declare a Map containing certain properties with flow
- 设置'这'在React with Inverse Data Flow中
- Jank with Velocity
- AngularJS with velocity
- 动画高度到自动存储高度- slideUp with velocity.js
- step function with velocity.js?