app.controller('getUser', function ($scope, $http, $cookieStore) {
$http.get('http://localhost:8080/myapp/user/'.concat($scope.getUserId) + '?access_token=' + $cookieStore.get("access_token")).
then(function (response) {
$scope.users = response.data;
});});
Table name: user{ id | userDate | 1 | 2016-11-28 05:30:00.0}
<div ng-controller="getUser">
<label class="control-label">Date</label>
<input type="date" class="form-control" ng-model="users.userDate" ng-value="{{users.userDate"}}">
</div>
它不在日期選擇器中顯示日期。你能給我解決方案嗎? 由於如何使用angularjs從數據庫中僅顯示datepicker中的日期
我相信* *用戶實際上包含一個用戶。所以......你需要什麼的'NG值=「{{users.userDate」}}「'當你已經一個'NG-模型=」 users.userDate「'? – lealceldeiro
它會出現在你有一個額外的' 「''NG值=」{{users.userDate 「}}」' – haxxxton