Hi All,

Ok, maybe I’m weird, but doesn’t anybody see the obvious bug in here ;)

function controller( $scope ){ 
   $scope.var; 
   var myvar = 'Hello world'; 
   function myfunction(){ 
       alert(myvar);  // <----- I assume this is the needed code for this 
brilliant piece!!
   }
 }

On a serious note,
Yeah, this is perfectly valid, and I my opinion preferable above putting 
everything on the $scope!

Regards
Sander

-- 
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/groups/opt_out.

Reply via email to