title: Best solution to Enums in AngularJS?
body: <p>I'm having trouble finding an elegant solution to Enums and especially searching in Enums with AngularJS.</p>
  
  <p>Let me describe a situation and how I handled it: Say I have an object called <code>Event</code>
  This event has 2 properties : <code>Severity</code> and <code>Status</code>. Both of which are Enums, defined by ID (1, 2,3) and Title (for Severity : "Light", "Normal", "Important" and for Status : "Open", "Closed", "Pending Approval")</p>
  
  <p>The Event objects that come from the Service have the ID's of the Enums, and when I want to display the object I bind with <code>{{ severityIdToTitle(Event.Severity) }}</code>
  SeverityIdtoTitle is a method on my controller which calls a method on my service which returns the value of the Enum based on the id recieved
  The problem arises when I want the user to be able to search the object through text, the AngularJS filter doesn't know the actual "string" value of the Enum, and so I reach my problem.</p>
  
  <p>I know many workarounds around this, and have a few options, but I wonder what would be anelegant and clean solution to this? Did what I do complicate things and there's a better way?</p>
  
  <p>Thanks guys!</p>