我发送一个这样的事件进行删除
<child-component *ngFor = "#todo of array" [taskobject] = "todo"
(childevent) = "deleteparent($event)">Loading...</child-component>
我如何与 childevent 一起发送另一个事件,它是用逗号分隔的吗?像这样?
<child-component *ngFor = "#todo of array" [taskobject] = "todo"
(childevent) = "deleteparent($event)",
(updateevent)> = "(updateparent)"Loading...</child-component>
对于编辑/更新请求,我应该向服务器请求什么 http,它是 http.put 也在服务器端吗,它是 server.put('url') 吗?
更新:
<child-component *ngFor = "#todo of array"
[taskobject] = "todo" (childevent) = "deleteparent($event)"
; (updatevent) = "updateparent($event)">Loading...</child-component>