Skip to content

Instantly share code, notes, and snippets.

@vijedi
Last active March 15, 2016 20:32
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 vijedi/59853fb57ce22ee8b6b3 to your computer and use it in GitHub Desktop.
Save vijedi/59853fb57ce22ee8b6b3 to your computer and use it in GitHub Desktop.
Code that showed the correct thing in the directive
<!-- has_alerts is true and view_opts.state is set to 'expired' -->
<div id='BriefAlert' class='alert alert-info' ng-show='has_alerts'>
<span ng-switch='view_opts.state'>
<span ng-switch-when='expired'>This thing was expired</span>
<span ng-switch-when='reassigend'>This thing was reassigned to someone else</span>
<span ng-switch-when='view_only'>You can only view this thing</span>
</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment