Skip to content

Instantly share code, notes, and snippets.

@ryardley
Last active August 29, 2015 14:13
Show Gist options
  • Save ryardley/80212f6b87a67e679657 to your computer and use it in GitHub Desktop.
Save ryardley/80212f6b87a67e679657 to your computer and use it in GitHub Desktop.
angular.module('MyModule')
.directive('myOverlayButton', function () {
return {
restrict: 'A',
template: '<div ng-click="handleButtonClicked()" />',
};
})
.directive('myOverlayBackground', function () {
return {
restrict: 'A',
template: '<div ng-show="isOverlayShowing" />',
};
})
.directive('myOverlayContent', function () {
return {
restrict: 'A',
template: '<div ng-show="isOverlayShowing" />',
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment