How to Split string before '@' in angularJS : <p>I want to split an email of user before letter </p>

<blockquote>
  <p>@</p>
</blockquote>

<p>in Javascript especialy in angularJS. for example if its</p>

<blockquote>
  <p>blabla@gla.com</p>
</blockquote>

<p>it will turn into</p>

<blockquote>
  <p>blabla</p>
</blockquote>

<p>can someone give me a simple example to make it?
because i must split it from API and store it as localstorage,
some of example that i find its use limitTo but can we use it to cut it in specific way from <code>@</code> until end?</p>
