Reputation: 3390
I create a kendo dropdown list and would like the list to have a value selected as specified from a $scope variable.
See the plunker http://plnkr.co/edit/BWGi8JYMSeh2JaLBmfPT?p=preview
I have tried using k-ng-model
as well as ng-model
but to no success.
Does anybody know how to do this?
Thanks!
Upvotes: 0
Views: 4721
Reputation: 9242
In your plunker, instead of specifying the entire object in your zzEventType, specify the id. So change:
$scope.zzEventType = {id:3, name:"PHP"};
To
$scope.zzEventType = 3;
It's been awhile since I used angular, but this works for me.
Upvotes: 2