title: Angular Js , Check substring in comma separated string in angular js
body: <p>I have got following result from localstorage,</p>
  
  <pre><code>HD, TA, DI
  </code></pre>
  
  <p>Now In angular js I want to display divs based on this data as:</p>
  
  <pre><code>HD      : Only display Home Delivery Button.
  HD, TA  : Display Home Delivery and Take Away Buttons.
  HD,TA,DI: Display Home Delivery, Take Away, dine In Buttons.
  
  &lt;div ng-if="result==What should be here"&gt;&lt;/div&gt;
  </code></pre>