I'm submitting a ...
[ ] bug report
[ ] feature request
[X ] question about the decisions made in the repository
Do you want to request a feature or report a bug?
NO
What is the current behavior?
Error - [ts] Argument of type 'typeof ...Component' is not assignable to parameter of type 'ContainerContent'.
Type 'typeof ...Component' is not assignable to type 'TemplateRef'.
Property 'elementRef' is missing in type 'typeof ...Component'.
I'm very curious about this line in app.component.ts:
return this.modal.open(CustomModal, overlayConfig);
Specifically the 'CustomModal' param to the open method. Why is it just the name of the Component class? This is not working for me, but I'm just trying to understand that. I created my component with angular-cli and it has all the code as in the sample in that plunker - just the name changed:
implements CloseGuard, ModalComponent
Anyway, now I'm trying to figure out how to get a TemplateRef to pass in there, since I thought I might be able to get that from my component.
Anyway, if I'm off my rocker here, you can just disregard this. It is late on a Friday and I may just be missing something obvious :) Have a great weekend.
http://embed.plnkr.co/7c0pGE/
NO
Error - [ts] Argument of type 'typeof ...Component' is not assignable to parameter of type 'ContainerContent'. Type 'typeof ...Component' is not assignable to type 'TemplateRef'.
Property 'elementRef' is missing in type 'typeof ...Component'.
Just trying to follow the plunker which was set up: http://embed.plnkr.co/7c0pGE/
I'm very curious about this line in app.component.ts: return this.modal.open(CustomModal, overlayConfig);
Specifically the 'CustomModal' param to the open method. Why is it just the name of the Component class? This is not working for me, but I'm just trying to understand that. I created my component with angular-cli and it has all the code as in the sample in that plunker - just the name changed:
implements CloseGuard, ModalComponent
Anyway, now I'm trying to figure out how to get a TemplateRef to pass in there, since I thought I might be able to get that from my component.
Anyway, if I'm off my rocker here, you can just disregard this. It is late on a Friday and I may just be missing something obvious :) Have a great weekend.
angular-cli: 1.0.0-beta.11-webpack.8