title: How to compare the country string value with dropdown value in Angularjs?
body: <p>I want to select the country from dropdown and send to backend by forming JSON request.</p>
  
  <p>And I need to display the country name from JSON response by comparing the response string with dropdown value.</p>
  
  <p>In my code to display all country I am using an external JavaScript link. </p>
  
  <p>I tried but I can't compare the string value with dropdown.</p>
  
  <p>I tried ng-option also but it doesn't work for me.</p>
  
  <p>The external js link is: <code>&lt;script src="http://iamrohit.in/lab/js/location.js"&gt;&lt;/script&gt;</code></p>
  
  <pre><code>&lt;select name="country" class="form-control1 drop countries" required  ng-model="model.country" placeholder="select" id="countryId sel1"&gt;
  </code></pre>
  
  <p>JSON response = </p>
  
  <pre><code>{
    "response": {
      "service": {
  
      },
      "data": {
        "country": "India"
      }
    }
  }
  </code></pre>