Here is a textarea containing values in a specific format:
param01 : value01
param02 : value02
This is the code I have tried:
<div class="col-xs-4 input-container">
<textarea id="gateway-params" ng-disabled="!edit">{{gatewayParams}}</textarea>
</div>
JavaScript function:
$scope.save = function() {
for (var i = 0; $scope.gatewayParams; i++) {
console.log(params[i]);
}
}
My goal is to read each line from the textarea and create a Javascript object based on it.
Best regards!