O'Reilly logo

AngularJS in Action by Lukas Ruebbelke with Brian Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Views and controllers

This chapter covers

  • What a view is in AngularJS
  • Creating controllers to manage views
  • Declaring properties and methods in a controller
  • Binding to properties and expressions in an AngularJS template
  • Best practices for creating views and controllers and how to test them

In this chapter, we’ll get into the most fundamental and important facet in AngularJS. You’ll learn what views and controllers are in AngularJS, and more importantly the relationship that they have with each other. There may be some edge case that we haven’t considered but by our approximation, everything in AngularJS is designed to either support views and controllers, or to extend their functionality.

The goal of this chapter is to build ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required