18 lines
537 B
JavaScript
18 lines
537 B
JavaScript
angular.module('kityminderEditor')
|
|
.directive('noteBtn', ['valueTransfer', function(valueTransfer) {
|
|
return {
|
|
restrict: 'E',
|
|
templateUrl: 'ui/directive/noteBtn/noteBtn.html',
|
|
scope: {
|
|
minder: '='
|
|
},
|
|
replace: true,
|
|
link: function($scope) {
|
|
var minder = $scope.minder;
|
|
|
|
$scope.addNote =function() {
|
|
valueTransfer.noteEditorOpen = true;
|
|
};
|
|
}
|
|
}
|
|
}]); |