title: Setting dyanmic function arguments
body: <p>I have the following functions in my controller that work fine with the given text:</p>
  
  <pre><code>  $scope.shareFbBtn=function(){
  
    $ionicPlatform.ready(function() {
  
  $cordovaSocialSharing.shareViaFacebook("Can anyone get further? #initialreaction", "http://i.imgur.com/7PkUq6f.png",null).then(function(result) {
    // Success!
    console.log("FB success");
  }, function(err) {
    // An error occurred. Show a message to the user
    console.log("Facebook share did not work");
  });
  
  
  })
    }
  
  
  
   $scope.shareTwitterBtn=function(){
  
    $ionicPlatform.ready(function() {
  $cordovaSocialSharing.shareViaTwitter("Can anyone get further? #initialreaction", "http://i.imgur.com/7PkUq6f.png", "http://www.gogatherapp.com/press").then(function(result) {
    // Success!
    console.log(saying);
  }, function(err) {
    // An error occurred. Show a message to the user
    console.log("Twitter share did not work");
  });
  
  
  })
    }
  </code></pre>
  
  <p>However, I would like to give the function dynamic arguments like so</p>
  
  <pre><code>shareFbBtn({{somethingdynamic}})
  </code></pre>
  
  <p>And replace the standard text "Can anyone get further" with the dynamic text argument.</p>
  
  <p>Any and all help is greatly appreciated. Thanks :)</p>
  
  <p>EDIT:
  I have already tried putting the argument in the function like below but it does not work:</p>
  
  <p>HTML:</p>
  
  <pre><code>ng-click="shareFbBtn(Hello);"
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>$scope.shareFbBtn=function(text){
  
        $ionicPlatform.ready(function() {
  
      $cordovaSocialSharing.shareViaFacebook(text, "http://i.imgur.com/7PkUq6f.png",null).then(function(result) {
        // Success!
        console.log("FB success");
      }, function(err) {
        // An error occurred. Show a message to the user
        console.log("Facebook share did not work");
      });
  
  
      })
        }
  </code></pre>