Hello everyone. I am trying to use angular to make requests (api calls) 
within my web app.

Everything is working ok, however I have a small issue that I haven't been 
able to figure out.

When I make the api call in my local environment the returned object looks 
like this.

   menu: {id_menu: 458, name: "W2", sequence: 604, deleted: 0, diet: 1, 
   weekly_menu: 1,…}
      deleted: 0
      diet: 1
      id_menu: 458
   1. 
      
Notice above that the fields deleted, diet, and Id_menu are integers.


When I make the api call in my staging environment the returned object 
looks like this.


   menu: {id_menu: "458", name: "W2", sequence: "604", deleted: "0", diet: 
   "1", weekly_menu: "1",…}
      deleted: "0"
      diet: "1"
      id_menu: "458"
   1. 
      
Notice: diet, and deleted filed are "strings".


I don't know why I get differently behaviors on the same code (using same 
version of angular). 

Can someone help me understand this? 

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to