Putting forwardRef in BafDialog for Application component has sense. Without forwardRef I'am getting undefined for BafDialog directives. With forwardRef compiler is able to find Application directive in BafDialog component and I dont get this error, but I get other error:
Unconditional component cycle in Application I will try to figure out what is going here. Zlaja On Thursday, September 24, 2015 at 10:28:46 AM UTC+2, Zlatko Josic wrote: > > Sorry, I haven't <application> tag i BafDialog html template, so it > worked. When I put tag in template I have same problem again. > > Zlaja > > On Thursday, September 24, 2015 at 10:08:27 AM UTC+2, Zlatko Josic wrote: >> >> >> Finally I have managed it. I've needed two forwardRef. BafDialog is >> before EditView so I have to use forwardRef in EditView. >> But I had to use forwardRef in BafDialog for Application component even >> the Application component was defined before BafDialog. >> >> @Eric thank you. >> >> Zlaja >> >> On Monday, September 21, 2015 at 11:41:30 AM UTC+2, Zlatko Josic wrote: >>> >>> I have looked at angular2 mailing list at github. They suggest for >>> problems sending mail to stackoverflow. >>> >>> So I've posted there: >>> >>> >>> http://stackoverflow.com/questions/32691899/angular-2-child-component-refers-to-parent-component >>> >>> Zlatko >>> >>> On Mon, Sep 21, 2015 at 11:07 AM, Zlatko Josic <[email protected]> >>> wrote: >>> >>>> It looks like it is not possible to have component which refers to >>>> parent, parent of parent,...component. If I in BafDialog replace >>>> Application component (which is from upper level) with some other >>>> component >>>> It works. I will ask on angular2 mailing list about it. Maybe it's >>>> restriction. >>>> >>>> Zlatko >>>> >>>> On Mon, Sep 21, 2015 at 4:17 AM, Eric Martinez < >>>> [email protected]> wrote: >>>> >>>>> Zlatko, >>>>> >>>>> it's quite hard to see what's going on. The error message should >>>>> specify which component is failing (part that you missed in the first >>>>> message). >>>>> >>>>> See that you are importing correctly every component, see that every >>>>> component is working separately, and this might be hard, but try to >>>>> reproduce the error in a plnkr because I honestly see nothing wrong, but >>>>> that's because I can't test your code. And I would recommend you to >>>>> remove >>>>> forwardRef, you don't need it, so you can stick to the original error. >>>>> >>>>> Regards, >>>>> >>>>> -- >>>>> You received this message because you are subscribed to a topic in the >>>>> Google Groups "AngularJS" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/angular/tDU5sw1vBwc/unsubscribe. >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/angular. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>> -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
