Access ngWigPlugin bindings from an actual plugin
Closed this issue · 1 comments
bampakoa commented
@stevermeister I have noticed that the ngWigPlugin controller replaces its element with the actual plugin contents below. My question is how can the actual plugin access the bindings of the ngWigPlugin afterwards (e.g. the editMode or the options object) inside its own controller?
$element.replaceWith($compile('<' + this.plugin.pluginName + ' ' +
'plugin=' + '"$ctrl.plugin"' +
'exec-command=' + '"$ctrl.execCommand"' +
'edit-mode=' + '"$ctrl.editMode"' +
'disabled=' + '"$ctrl.disabled"' +
'options=' + '"$ctrl.options"' +
'/>')($scope));
bampakoa commented
Please ignore this issue as I have figured it out.