my json is bellow

{"id":2,"userId":null,"username":"abc","password":"***","email":"[email protected],"mailType":"imap","incomingServer":"imap.gmail.com","outgoingServer":"smtp.gmail.com","incomingPort":993,"outgoingPort":463,"securityType":"ssl","viewCount":1000}


On Monday, January 11, 2016 at 4:13:36 PM UTC+5, Kamran Omar wrote:
>
> hello...
>
>
> my radio button code is following...
>
> <div class="col-md-7">
>  <label ng-repeat="t in mailTypes"> <input
>  type="radio" name="mailType" ng-model="mailconfig.mailType" 
>  ng-value="t.value" /> {{t.label}}
>  </label>
>  </div>
>
>
>
> angularjs file is code is following..
>
>
>
> $scope.mailconfig = {
>  securityType : '',
>  mailType : 'pop3'
>
>
>  };
>  $scope.mailTypes = [{value: 'pop3', label: 'Pop 3', checked: true},{value
> : 'imap', label: 'Exchange/IMPS' , checked : false}]
>  
>
>
>
>
> $scope.loadConfigure = function() {
>
>
>  MailService.loadConfigure().then(function(data) {
>  $scope.mailconfig = data;
>  console.log('loadConfigure',data);
>  }, function(error) {
>  alert("error while loading config.");
>  });
>
>
>  }
>
>
> $scope.loadConfigure();
>
>
>
> the problem is the after loadConfigure mailtype value is impa but it is 
> not updating that.. so how can i do that.. ng-model not binding.. tell me 
> what i am doing wrong.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to