Open bootstrap modal on page load angular 2

前端 未结 3 1495
醉梦人生
醉梦人生 2021-02-11 01:46

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:06

    Why using jquery?

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

    Give Angular Material dialog a try!

提交回复
热议问题