Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(modal): add component instance type #1771

Closed

Conversation

mattlewis92
Copy link
Contributor

@mattlewis92 mattlewis92 commented Aug 23, 2017

BREAKING CHANGE:
you now need to pass a component type to the modal open function.

Before:

modalService.open(ModalComponent);

After:

modalService.open<ModalComponent>(ModalComponent);

Before submitting a pull request, please make sure you have at least performed the following:

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated any applicable tests.
  • added/updated any applicable API documentation.
  • added/updated any applicable demos.

It may be better to wait for TS 2.3 as a minimum where generic defaults are possible, so it would be a better breaking change for users as it would only require them to upgrade their TS version.

BREAKING CHANGE:
you now need to pass a component type to the modal open function.

Before:
```
modalService.open(ModalComponent);
```

After:
```
modalService.open<ModalComponent>(ModalComponent);
```
@pkozlowski-opensource
Copy link
Member

Thnx for the PR but we will rather go with the solution outlined in #2479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants