I think the best way to achieve that is to create a new directive:
angular.module("yourApp")
.directive("skypeUi", function() {
return {
restrict: "E",
template: "<div></div>",
replace: true,
scope: {
participants: "="
},
link: function(scope, element, attrs){
Skype.ui({
"name": "dropdown",
"element": attrs.id,
"participants": scope.participants,
"imageSize": 32
});
}
};
});
So you can use like that;
<skype-ui id="SkypeButton_Call_mike_1" participants="participants">
</skype-ui>
And finally in your controller:
$scope.participants = ["mike"];