Skip to content

Instantly share code, notes, and snippets.

@nickretallack
Created February 9, 2013 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickretallack/4743271 to your computer and use it in GitHub Desktop.
Save nickretallack/4743271 to your computer and use it in GitHub Desktop.
Hacky little dialog box in Angular
<div ng-switch="!!$root.show_this_dialog">
<section ng-switch-when="true" class="overlay" centerline ng-click="$root.show_this_dialog = false">
<div class="dialog" ng-click="$event.stopPropagation()">
<header class="header">
<h1>I'm a Dialog</h2>
<a class="close" ng-click="$root.show_this_dialog = false">x</a>
</header>
</div>
</section>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment