Now that you have seen some basic AngularJS expressions, let’s take a look at how to interact with the scope inside AngularJS expressions. In the previous example all the input for the expressions came from explicit strings or numbers. This example illustrates the true power of AngularJS expressions that come from interacting with the model.
The code in Listing 5.3 implements a basic AngularJS application with a controller. The controller contains the variables
newVehicle in the scope. It also includes three functions,
setValues. These variables and functions are utilized in AngularJS expressions in the template shown in Listing 5.4.
The code in Listing ...