i also find that $scope will not be that easy to be removed. For example, if I want to use $scope. $watch.
On Mon, Jun 22, 2015 at 9:20 PM, Xi Chen <[email protected]> wrote: > thanks all for your comments. Do you know why angular tries to move > "$scope" away? > > On Mon, Jun 22, 2015 at 5:35 PM, Luís Loureiro <[email protected]> > wrote: > >> Hi Bargitta. >> Take a look at this: >> https://github.com/johnpapa/angular-styleguide#controllers >> It explains well how to use "controller As" syntax. >> >> Regards, >> *Luís Loureiro* >> >> >> segunda-feira, 22 de Junho de 2015 às 15:32:20 UTC+1, bargitta escreveu: >>> >>> Hi, >>> >>> Do you use $scope in your controller to setup variables that will be >>> used in the html template? >>> Or do you use this like this.user = {} in your UserController and ctrl >>> as UserController, ctrl.user in the html template? >>> What is the recommended way? >>> >> -- >> 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/JW5hgkCWRlQ/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.
