All models are just classes which models concept of model for every component. For example, EditView component has EditViewModel and etc.
EditView component has a template which can contain many EditView components, this is the way how we model master/detail forms. So, EditView must be in directives of EditView component and it works fine. Ok, but with forwardRef I'm getting different exception, in both cases, with and without forwardRef, stack trace does not tell me much. Zlatko On Sun, Sep 20, 2015 at 7:26 PM, Eric Martinez <[email protected]> wrote: > Zlatko, > > that's a lot of code, but this is what I see > > @View({ > templateUrl: "component/editview/editview.html", > directives: [NgFor, NgIf, Toolbar, TableEditView, SingleEditView,EditView > ,BafDialog] > }) > > > export class EditView { > > In the directives property you are calling 'EditView', the class itself, > and it isn't yet defined, and in that same class you are calling > 'EditViewModel', so I'm pretty sure that in your directives property it > should say 'EditViewModel' instead of 'EditView'. > > From my first answer I recommended you to use forwardRef, it was just a > guess, but from your project structure you don't need it, so you can have > it like it was at the beginning. > > Eric, > > -- > 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.
