javascript - Trying to link to specific page within angularjs app -


i'm using api requires me pass in url part of callback after authenticates user, knows send them part of flow.

i know if happening on front-end somehow use $location feature angular provides, callback url must specified on node.js server in code below. have linking github url make sure getting executed, need link content.html page on localhost:8887. know it'd localhost:8887/content.html if weren't using angularjs , don't know using angular.

router.post('/add', function(req, res){     var emailadd = req.body.text;      ctxioclient.accounts(id).connect_tokens().post({callback_url: "https://github.com/ralphie9224", email: emailadd},         function(err, response){         res.set("content-type", "application/json");         res.header("access-control-allow-origin", "*");         res.send(response.body);         console.log("this post response: " + response.body);     }); }); 


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -