shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

can't load custom modal component in angular 2.1 #254

Closed zontafil closed 7 years ago

zontafil commented 7 years ago

I'm using angular 2.1 and angular 2.1 fails to load the custom AdditionCalculateWindow.

See this plunker: http://plnkr.co/edit/QK7axXrORMp8LQM3Vax9?p=preview

clipfert commented 7 years ago

I am also having the same issue.

shlomiassaf commented 7 years ago

You've upgrade to angular 2.1 in the plunker but didn't update the Zone library. Angular 2.1 requires zone 6.21

set this in the index.html

<script src="https://npmcdn.com/zone.js@0.6.21?main=browser"></script>

Also add the component into the declaration array