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 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.

Reply via email to