title: cascading dropdown angularjs ng-option object error
body: <p>i have used this example <a href="http://devzone.co.in/simple-example-of-dependable-dropdowns-cascading-dropdowns-using-angularjs/" rel="nofollow noreferrer">http://devzone.co.in/simple-example-of-dependable-dropdowns-cascading-dropdowns-using-angularjs/</a> here its working fine but my getting object with index number rather than getting value<img src="https://i.stack.imgur.com/67yoQ.png" alt="enter image description here"></p>
  
  <p>my controller
     'use strict';</p>
  
  <pre><code>/**
  * @ngdoc object
  * @name test.Controllers.TestController
  * @description TestController
  * @requires ng.$scope
  */
  
  angular
  .module('test')
  .controller('TestController', [
      '$scope',
      function($scope) {
          $scope.countries = {
              'India': {
                  'Maharashtra': ['Pune', 'Mumbai', 'Nagpur', 'Akola'],
                  'Madhya Pradesh': ['Indore', 'Bhopal', 'Jabalpur'],
                  'Rajasthan': ['Jaipur', 'Ajmer', 'Jodhpur']
              },
              'USA': {
                  'Alabama': ['Montgomery', 'Birmingham'],
                  'California': ['Sacramento', 'Fremont'],
                  'Illinois': ['Springfield', 'Chicago']
              },
              'Australia': {
                  'New South Wales': ['Sydney'],
                  'Victoria': ['Melbourne']
              }
          };
          $scope.GetSelectedCountry = function () {
              $scope.strCountry = document.getElementById("country").value;
              var datas =$scope.strCountry;
              console.log(JSON.stringify(datas));
          };
          $scope.GetSelectedState = function () {
              $scope.strState = document.getElementById("state").value;
          };
  
  
  
      }
  ]);
  </code></pre>
  
  <p>my view page  </p>
  
  
          
              Country:
              
                  Select
              
          
          
              &nbsp;
          
              States:Select
              
          
          
              &nbsp;
          
              City:
                  Select
                  {{city}}
              
          
          
              &nbsp;
          
              Selected Country: 
              
                  {{strCountry}}
          
          
              &nbsp;
          
              Selected State: 
              
                  {{strState}}
          
          
              &nbsp;
          
              Selected City: 
              
                  {{city}}