Download Beginning AngularJS by Andrew Grant PDF
By Andrew Grant
Read or Download Beginning AngularJS PDF
- Getting Started with WebRTC
- AngularJS: Up and Running: Enhanced Productivity with Structured Web Apps
Extra resources for Beginning AngularJS
Is the model all of the objects that represent the entities in our data store, or is it just the one specific piece of information that we use in a view (employees being an example of the latter)? The short and simple answer is that it depends on the context, although it is quite common to refer to the former as the domain model and the latter as the view model. Let’s turn our attention to the view. Here is a very simple example of what an AngularJS view looks like. In AngularJS parlance, we would call this a view template.
Bindings and expressions will be second nature to you in no time, as these are at the core of how AngularJS works. You can see the result of this in Figure 2-2. Figure 2-2. The output of our Hello World listing I said it was very exciting, didn’t I? Well, perhaps I exaggerated a little bit. Nonetheless, it is an AngularJS application, and it gets you started on your journey. We will do something a little more interesting shortly, but let’s summarize the key steps we took in Listing 2-1. • We used the ngApp directive to inform our page that it should consider itself under the control of AngularJS.