問題タブ [viewchild]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
384 問題
0
投票する
2
に答える
10006
参照
angular - Angular(2/4) modalService.close() が機能しない
これは私のコードです:
別の機能で使用しようとして this.modalService.close()
います。しかし、this.modalService.open(modal)
完全に機能しているのと同じ機能でも機能していません。
このエラーが発生しています:
this.modalService.close is not a function
ここで何がうまくいかなかったのでしょうか?