Skip to content

Instantly share code, notes, and snippets.

@ryardley
Last active August 29, 2015 14:13
Embed
What would you like to do?
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