I am working with AngularJs4 . I am trying to verify each user at server side. Server side contains a lua page and returns a name.
in angular I use : <https://lh3.googleusercontent.com/-ZcKqJfk6VXQ/WdW6ih1YuRI/AAAAAAAAC1o/DNKJZS74QW01bn3ErVq4ublrKG96st6qwCLcBGAs/s1600/123.png> var result = this._http.post("http://192.168.0.102:8000/user.lua",uname,pass) alert(result) *user.lua* require "string" function handle(r) local POST, POSTMULTI = r:parsebody() local name = POST['uname'] local pass = POST['pass'] r.content_type = "text/plain" if r.method == 'POST' then r:puts("\n...The Log Detailsss...\n\n") for k, v in pairs( POST,POSTMULTI ) do r:puts( string.format("%s: %s\n\n", k, v) ) --file:write(string.format("%s: %s\n\n", k, v)) return "hello" end end return "name" end When I run application it alert like.. [Object Object] What will I do ...Please help -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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.
