Building an Application with AngularJS Tutorial: Using DI in a Controller | packtpub.com

125 views · Published 15 December 2014 · 3:08 · Indexed 25 October 2026

Channel: Packt · 2014 · Science & Technology

Watch on YouTube

Part of Building an Application with AngularJS video series. For the full Course visit:
https://www.packtpub.com/web-development/building-application-angularjs-video?utm_source=youtube&utm_medium=video-description&utm_campaign=yt-BAwithAngularJs

Controllers and services often need to collaborate with or use other services. We can get hold of external dependencies using the dependency injection. 
• Define a new controller 
• Add the $scope service as an external dependency of the controller. 
• Inject multiple external dependencies into the controller 
________________________________________________________________

For the latest in web development video tutorials, please visit:
http://www.packtpub.com/books/video?utm_source=youtube&utm_medium=video-description&utm_campaign=yt-BAwithAngularJs

Find us on Facebook -- http://www.facebook.com/Packtvideo
Follow us on Twitter - http://www.twitter.com/packtvideo

More from this channel