0
我有分量與已經裝在一個HTML頁面代碼Angular 2/4:如何在彈出窗口中使用現有的組件實例?
analytics.html
<test-comp #refcomp ></test-comp>
我在同一頁面analytics.html彈出對話框選擇「測試-COMP」,其中我想顯示相同的實例(#refcomp),而不是再次加載它(test-comp)。
-Currently我再次創造一個更實例
<test-comp #popup ></test-comp>
我怎麼能這樣做?
你可以有點解釋清楚你的問題 –