Skip to content

Instantly share code, notes, and snippets.

@send2moran
Created May 28, 2015 08:06
Show Gist options
  • Save send2moran/43a1bfd35a1941d33f5b to your computer and use it in GitHub Desktop.
Save send2moran/43a1bfd35a1941d33f5b to your computer and use it in GitHub Desktop.
'use strict';
angular.module('wpclp.cp').directive('cpMultiShareManager', function() {
return {
restrict: 'E',
replace: true,
scope: true,
link: function(scope, el, attr) {
},
controller: function($scope) {
this.setTextAreaAsDirty = function() {
$scope.messages.dirty = true;
};
}
};
});
/*global $ */
'use strict';
angular.module('wpclp.cp')
.directive('cpMultiShare', function (whipSdk) {
return {
restrict: 'E',
replace: true,
require:'^cpMultiShareManager',
scope:{
socailType:'=',
data:'=',
text:'=',
managerState:'='
},
templateUrl: 'app/directives/multiShare.html',
link: function(scope, element, attrs, cpMultiShareManagerCtrl) {
scope.setTextAreaAsDirty = function(){
cpMultiShareManagerCtrl.setTextAreaAsDirty && cpMultiShareManagerCtrl.setTextAreaAsDirty();
};
},
controller: function ($scope, whipSdk, cpSocialSvc) {
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment