【发布时间】:2019-08-20 20:06:14
【问题描述】:
我有 json 响应 {"CustomerAccount":{"segment":"Enterprise","type":"Domestic"}} 这个 json 从另一个 url 获取。
到目前为止我做了什么,这个 json 发送到用 angular 构建的第二个 url,并且已经在控制台上打印了。
我尝试使用 <input type="text" class="form-control form-control-sm" id="nama-ocr" name="{{ segment }}"> 将 json 填充为角度页面中的表单值
有人怎么做吗?我应该在 component.ts 文件中放什么?
还尝试了来自 github 的 dannyvankooten 的 populate.js,但只是在处理非角度 html
谢谢,
【问题讨论】:
标签: json angular typescript