Skip to content

Instantly share code, notes, and snippets.

@ungoldman
Created September 15, 2014 20:48
Show Gist options
  • Save ungoldman/208bfb44dc4ffbe00108 to your computer and use it in GitHub Desktop.
Save ungoldman/208bfb44dc4ffbe00108 to your computer and use it in GitHub Desktop.
sample angular directive modal implementation
<tailcoat-modal>
<tailcoat-modal-btn>Kill All Humans</tailcoat-modal-btn>
<tailcoat-modal-content>
<h2>Do you really want to kill all humans?</h2>
<button class="btn primary" ng-click="killAllHumans()">Yes</button>
<button class="btn cancel" ng-click="killAllHumans()">Definitely</button>
</tailcoat-modal-content>
</tailcoat-modal>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment