I think it all falls into places nicely now. Thanks! Best regards, Łukasz Bachman
2014-10-11 18:40 GMT+02:00 Sander Elias <[email protected]>: > hi Łukasz, > > Nope, no speed difference. If you are putting in information pro > reference, it’s just that. 2 pointers to the same data. > There is some documentation and recorded talk in where the core team hints > the controllerAs syntax is from now on the > preferred way to do things. But as I see it, they are nudging us that > direction, not pushing. > So it boils down to your preferences. > > In the controllerAs, an dot in your data is less important. There is no > technical reason anymore for the dot rule > (well, kind off, that happens technically is that this gets put on the > scope automatically. so, $scope.controlleAsName is > available on the scope hierarchy) > I think it still is a good plan to put your models in their own object, > and attach that to the this. > > Does this all make sense to you? > > Regards > Sander > > > -- > 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/zAjgjeyWptI/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.
