I am working on a function in my controller that takes in a parameter, let's call it time, and I want to use it to reference an ng-model in my scope.
This is what I currently have:
$scope.myFunction = function(){
$scope.minutes = 1;
}
This is what I aim to achieve:
$scope.myFunction = function(time){
$scope.time = 1;
}
Here, the variable time represents the parameter received and contains the value minutes.
Thank you!