[英]Angular.js googlemap info window button click is not passing the value?
[英]passing value to <input> with angular.js
我在这里找不到问题,为什么我看不到
HTML:
'<div ng-app="BusinessinfoModule" ng-controller="BusinessinfoController"
<label>Your Business Name</label>
<input type="text" class="form-control" name="bussiness" ng-model="bussiness" ng-maxlength="100" required>
</div>'
和控制器:
angular.module('BusinessinfoModule', [])
.controller('BusinessinfoController', function($scope) {
$scope.business = 'aaa';
});
这里是代笔: http ://codepen.io/anon/pen/GJggeE
<div ng-app="BusinessinfoModule" ng-controller="BusinessinfoController" >
<label>Your Business Name</label>
<input type="text" class="form-control"
name="bussiness"
ng-model="business " //ng-model which binds your controller scope to ui.
ng-maxlength="100"
required/>
</div>
angular.module('BusinessinfoModule', [])
.controller('BusinessinfoController', function($scope) {
$scope.business = 'aaa';
});
https://jsfiddle.net/ncoxq6zf/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.