1

I want to transfer data from HTML to JS, and I'm using Angular JS

I can transfer only 1 param

This is my code

HTML

<ons-row  class="list-item-container" ng-click="afisha(item.fullopis)">

JS

 $scope.afisha = function(qqrq) {
  $scope.fullopis= qqrq;
  afishamodal.show();
  };

But I want transfer 2 and more params.

How can I do it?

1 Answer 1

2

Pass n number of parameters:

<ons-row  class="list-item-container" ng-click="afisha(item.fullopis,param2,param3,...,paramn)">

$scope.afisha = function(qqrq, param2, param3,... paramn) {
    $scope.fullopis = qqrq;
    afishamodal.show();
};

Thanks,

Vishal Patel|simplified-it-outsourcing.com

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.