Closed zigax1 closed 1 year ago
As per the angular documentation inject
should be written with a lowercase i
.
Are you sure you are importing inject
from @angular/core
?
If someone stumbles across this at some later point, inject()
is available from Angular version 14 onwards, but that should be alright for your case.
That was completely my fault. The modal is working great! Thank you for the reply
I'm submitting a
Current behavior
I have trouble passing data to modal dialog component.. When I want to pass data to the modal dialog, it displays undefined
'parent' component, in which I trigger a modal dialog component code is:
Modal dialog component code is:
Maybe I am mistakenly using Inject(), because if I use lower letter --> inject() I get error that inject is unknown element in Angular.
Expected behavior
I want to display passed data in the modal dialog component
Environment
Angular version: 15 Ngneat version: 4.0.0
Browser: