-
-
Notifications
You must be signed in to change notification settings - Fork 40
angular dependency injection bug on platform specific files #437
Comments
I have what I think is the same situation for which I have created a simplified test project. In the test project I invoke a If I run the project like However, if I run it like
Any ideas what might be the issue? |
By the way, I forgot to mention something important! If I have only one implementation of Also I'd like to point out that my test project does contain typings in |
@sis0k0 - this is an open bug - any update here? |
Hi @shabib3, |
Hi @tsonevn -
here is a sample project - take a look that every thing works great with Pls check it on android because only in the *** note that I was able to solve it with this workaround that |
Hi,
I searched some for this issue I have and the only thing I found is this, but this actually didn't help cause I already implements the solution there by @sis0k0
The issue is that when I run the project with
--env.aot
flag something happened to the dependency injection of the platform specific files, and I will give an example:I created a ModalDialogHelper for every modal dialog I have to simplify the creation of the dialog, because there is some cases that I want to have a different UI dialog for every specific platform I separate it to different platform specific files, so it looks kind of like this:
itemsListWithIconsModalDialogHelper.d.ts
:itemsListWithIconsModalDialogHelper.android.ts
:itemsListWithIconsModalDialogHelper.ios.ts
:The actual thing that matter in this sample is the line
return this._modalService.showModal...
in theitemsListWithIconsModalDialogHelper.android.ts
file, because there you can see that thethis._modalService
is undefined, something with the dependency injection I guess...this issue doesn't happens it I run it only with
--bundle
flag.The example show you that this is problem in the
android specific file
but it happens also in theios specific file
.Thank you! :)
The text was updated successfully, but these errors were encountered: