![](/img/trans.png)
[英]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.