06 | Using AngularJS to create an SPA Stacey Mulcahy | Technical Evangelist Dave Voyles | Technical Evangelist
Module Overview Starting an AngularJS application Understanding Data Binding Module and Controller Getting and Posting Data using $http
Staring an AngularJS Application Stacey Mulcahy | Technical Evangelist Dave Voyles | Technical Evangelist
Starting an AngularJS Application Need to include the framework ( from CDN ) Need to initialize what element is the root of the application with ng-app
Starting an AngularJS application
Understanding Data Binding
Understanding DataBinding Data binding is two way in AngularJS Automatic Synchronization of data between model and view ng-model
Understanding Data Binding
Creating Controllers
Creating a Controller ng-controller Controllers should hold business logic Controller for a single view Set up initial state Not used to manipulate the DOM – think Directives
Module and Controller
Dealing with Data
Dealing with Data Utilize dependency injection $http – basic introduction Options – resources, services, etc
Dealing with Data using $http