0

我的表格帖子

<html>
<head>
    <title>Submit this form</title>
</head>
<body>
    <form method="post" action="http://localhost:4200/callback">
        <input type="hidden" name="access_token" value="eyJ0" />
<input type="hidden" name="token_type" value="Bearer" />
<input type="hidden" name="expires_in" value="3600" />
<input type="hidden" name="scope" value="read write" />
<input type="hidden" name="state" value="Ra7JV" />
    </form>
</body>
</html>

并且每当调用 http://localhost:4200/callback时,导航到 callbackComponent。但在这里它无法导航到显示无法发布/回调的回调组件。

我怎么能在我的 angular2 CallbackComponent 中捕获帖子表单。

4

1 回答 1

0

这是给像我这样的新手的:

为了实现这一点,我编写了服务器端代码 -> node.js(express) 其中 app.post('/callback') 尽我所能并重定向到我的客户端。

于 2017-06-23T07:36:10.427 回答