## Lesson Objectives 1. Completed `angular_set_up.md` 1. Create new holiday form 1. Hook form up to controller properties 1. Make form make AJAX request on submit 1. Check that the request was successful ## Upgrade our `MainController` in `app.js` to use the `$http` module - You'll need the `$http` request module in order to interact with our express server - We'll need to carefully upgrade our `app.Controller` to have a second argument as an array, and then pass in the value as a parameter in the callback function (still inside the array!) **In `js/app.js`** ```js const app = angular.module('HolidaysApp', []) app.controller('MainController', ['$http', function ($http) { this.h5 = 'Holidays! Celebrate!' }]) ``` - Let's test it to make sure it didn't break our code. Our `Holidays! Celebrate!` message should still appear in the browser ## Create new holiday form **In `index.html`:** ```html