title: How to concat two strings in angularjs in controller
body: <p>I want to post some data using $http.</p>
  
  <p>this is my url :</p>
  
  <p><a href="http://bananabook.net/api/rest/polls/create?oauth_consumer_key=xxxxxxx&amp;oauth_consumer_secret=xxxxxxx&amp;oauth_token=" rel="nofollow noreferrer">http://bananabook.net/api/rest/polls/create?oauth_consumer_key=xxxxxxx&amp;oauth_consumer_secret=xxxxxxx&amp;oauth_token=</a>"+$rootScope.user.oauth_token</p>
  
  <p>i want to add this objects value at end of url :</p>
  
  <pre><code> [{
      id : options_1,
      name : sdfsdf
      },
      {
       id : options_2,
      name :ddfgdfg
     },
     {
       id : options_3,
       name : erwwer
     }]
  </code></pre>
  
  <p>I want output url like this :
     <a href="http://bananabook.net/api/rest/polls/create?oauth_consumer_key=xxxxxxx&amp;oauth_consumer_secret=xxxxxxx&amp;oauth_token=xxxxx&amp;options_1=sdfsdf&amp;options_2=ddfgdfg&amp;options_3=erwwer" rel="nofollow noreferrer">http://bananabook.net/api/rest/polls/create?oauth_consumer_key=xxxxxxx&amp;oauth_consumer_secret=xxxxxxx&amp;oauth_token=xxxxx&amp;options_1=sdfsdf&amp;options_2=ddfgdfg&amp;options_3=erwwer</a></p>
  
  <p>I couldn't concat options to this initial url using this way </p>
  
  <pre><code>for(i=0;i&lt;$rootScope.choices.length;i++){
       $rootScope.url.concat("http://bananabook.net/api/rest/polls/create?oauth_consumer_key=xxxxxxx&amp;oauth_consumer_secret=xxxxxxxxx&amp;oauth_token="+$rootScope.user.oauth_token+"&amp;"+$rootScope.choices[i].id+"="+$rootScope.choices[i].name;
      }
  </code></pre>