May be initialisation issue. Can say only if get to see the code. Otherwise it should work.
On Wed, 21 Oct, 2020, 8:41 PM Neha Yargal, <[email protected]> wrote: > I tried @Input property and service as well but it's giving undefined data. > > On Wed, Oct 21, 2020 at 11:06 AM Rahul Mishra <[email protected]> > wrote: > >> You can write your logics and showing of data in component B and and you >> can use input parameter to pass your data from component A to B or else you >> can use service . >> >> On Wed, 21 Oct, 2020, 8:25 PM Neha Yargal, <[email protected]> wrote: >> >>> Hi, >>> >>> I have used bootstrap modal, it will open on the click of button(which >>> is in component A). modal has content from another component(component B). >>> The question is how to pass data(id) from component A to component B which >>> is inside the modal. please refer to the below image. >>> [image: image.png] >>> Thanks. >>> Regards, >>> Neha >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Angular and AngularJS discussion" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/angular/CACCTogd-aYWriLOTJmYcxBxaxMN1%3DeHuZCzGZmdgNewDs_RXKA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/angular/CACCTogd-aYWriLOTJmYcxBxaxMN1%3DeHuZCzGZmdgNewDs_RXKA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Angular and AngularJS discussion" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/angular/CACa0fzwo-giGRXEc6%3D64gRzpueKntOKf%2B8-je3yJsyaMOi-ukA%40mail.gmail.com >> <https://groups.google.com/d/msgid/angular/CACa0fzwo-giGRXEc6%3D64gRzpueKntOKf%2B8-je3yJsyaMOi-ukA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/angular/CACCTogcp%3DjEg5sMHE_7ELPKTrqoRxuy7YOGrDo1ZCR3%2BFf0c1Q%40mail.gmail.com > <https://groups.google.com/d/msgid/angular/CACCTogcp%3DjEg5sMHE_7ELPKTrqoRxuy7YOGrDo1ZCR3%2BFf0c1Q%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/CACa0fzx%2Bbz7gMGLEf4z-VApToLEZvK5ZHZwhy6T9g3swFQXv4A%40mail.gmail.com.
