Introducing AngularJS: Defining a Controller | packtpub.com

344 views · Published 2 July 2015 · 4:22 · Indexed 4 November 2026

Channel: Packt · 2015 · Science & Technology

Watch on YouTube

Part of 'Introducing AngularJS' video series. For full Course visit:
http://bit.ly/1IsrplG

Viewers need to be able to display data in the template. This is done via a controller, which they will learn to define here. 
• Add the ng-controller directive to the HTML markup to make it in charge of that markup 
• Defining the controller as an extension of the app 
• Inject $scope as an argument of the controller function, which will be the variable that will hold accessible data 


For the latest web development video tutorials, please visit
http://bit.ly/1KYwKQ5

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

More from this channel