The first controller
The introduction to the book (Page xxvi - xxvii):
"HelloController" gets used twice (once for English & once for Spanish)...;
Suppose I need the variable 'user', but I need it in Spanish & not in English or vice versa...;
In AngularJS Up & Running... You'd have something like the following:
ng-controller="HelloController as ctrl"
& then I'd have ctrl.user
Thank you in advance!
|