Skip to content Skip to sidebar Skip to footer

Display Multiple Information Into My Input

I have an input:

Solution 1:

Update your code and replace:

$scope.today = function() {
    $scope.dt = new Date();
  };

With:
 $scope.dt = [];
  $scope.today = function() {
     $scope.dt[0] = 'DU:'$scope.dt[1] = new Date();
     $scope.dt[2] = 'JOURNEE'
  };

Inside HTML:

ng-model="dt"

Post a Comment for "Display Multiple Information Into My Input"