Open bootstrap modal on page load angular 2

前端 未结 3 1721
情深已故
情深已故 2021-02-11 01:37

I am working on an angular2 project and I have 2 components namely: home and first.

My home.component.html is as below :-

3条回答
  •  无人共我
    2021-02-11 02:17

    Why using jquery?

    $("#login-modal").modal('show');
    

    Give Angular Material dialog a try!

提交回复
热议问题