title: angularjs - pass selected object's other properties on ng-change
body: <p>How can I get other properties from loaded json in dropdown / ng-options</p>
  
  <p>On ng-change I also like to pass selected object's campaignType. </p>
  
  <p>How would I able to do that?</p>
  
  <p>My View is looking like this</p>
  
  <pre><code>  &lt;div ng-app&gt;
      &lt;div ng-controller="cCtrl"&gt;
          &lt;select ng-model="campaign" ng-options="c.id as c.name for c in campaigns" ng-change="search2(c.campaignType)"&gt;
              &lt;option value=""&gt;-- choose campaign --&lt;/option&gt;
          &lt;/select&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My Controller is looking like this</p>
  
  <pre><code>  function cCtrl($scope) {
  
      $scope.campaigns = [{
          "custID": 1,
          "custName": "aaa ",
          "msgID": 3,
          "msgName": "Email Test Msg",
          "id": 2,
          "name": "Email Test Campaign",
          "description": "Test Campaign",
          "campaignType": "Email",
          "created": "1374229715",
          "isActive": 1,
          "isDeleted": 0
      }];
  
   $scope.search2 = function (campaignType) {
          alert(campaignType); // not working
          alert($scope.campaign.campaignType); // not working
          //console.log($scope.campaign.campaignType);
  
      }
  
  }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/webtheveloper/Qgmz7/8/" rel="noreferrer">http://jsfiddle.net/webtheveloper/Qgmz7/8/</a></p>