docs(guide): change prototype methods to scope methods in DI examples
As explained in 'Understanding the Controller Component', Controllers written for new (post 1.0 RC) versions of Angular need to add methods to the scope directly, not the function's prototype. Correcting this example should remove any ambiguity, especially for beginners.
A
Amir H. Hajizamani committed
75487ec933fb82702eeb0c65bd5f13ad9f07fbaf
Parent: dddb122
Committed by Brian Ford <btford@umich.edu>
on 1/18/2013, 5:49:41 AM