title: Getting id undefined in angularJs service
body: <p>I have followed tutorial : <a href="http://viralpatel.net/blogs/angularjs-service-factory-tutorial/" rel="nofollow">http://viralpatel.net/blogs/angularjs-service-factory-tutorial/</a>  </p>
  
  <p>But, when  I try to save a new record, I am getting newcontact.id as undefined and unable to save new record.  </p>
  
  <p>What would be the problem?</p>