Kamran, nice to hear that you fixed your problem.
Maybe this was a reference related problem.
Try to use the *controllerAs* syntax, I think it avoids this kind of
problems.
Reards,
*Luís Loureiro*
2016-01-12 2:42 GMT+00:00 Kamran Omar:
>
> i have move the mailtypes inside the loadconfigure.. its working for me.
> now on load i am able to imap selected.
>
> $scope.loadConfigure = function() {
>
>
> MailService.loadConfigure().then(function(data) {
> $scope.mailconfig = data;
> console.log('loadConfigure',data);
> $scope.mailTypes = [{value: 'pop3', label: 'Pop 3', checked: true},{value
> : 'imap', label: 'Exchange/IMPS' , checked : false}]
>
> }, function(error) {
> alert("error while loading config.");
> });
>
>
> }
>
>
> well i don't know why it behaves like this.
>
>
> On Tuesday, January 12, 2016 at 3:15:13 AM UTC+5, Luís Loureiro wrote:
>>
>> I tried to create a *plunkr* with your code and I couldn't find any
>> problems, the model seemed to update correctly.
>> What are you expecting to happen? (I'm not sure)
>>
>> Could you provide us a *plunkr* with your code, including
>> *MailService.loadConfigure*?
>> Maybe there's something there.
>>
>> Regards,
>> *Luís Loureiro*
>>
>
--
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.