Hi Tan,

While I did not run the example, I wonder why it would not work for you? 
Did you get an error in the console?
I always use the array notation, because I always minimize my code. I do it 
by hand, but there are tools that can do the same.
And yes, you are in fact injecting $scope. Unminimized my declaration, and 
yours are exactly the same.

Knowing when to inject something is easy. do you need/use it? inject!
You already did that!

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/d/optout.

Reply via email to