From ea117cbc9aa211db9ebc72ff142cecfc604615d9 Mon Sep 17 00:00:00 2001 From: ottun Date: Sat, 10 Oct 2015 21:34:34 +0100 Subject: [PATCH] Update index.html Changed how controller is created, using the formApp controller method instead. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7003a46..27fe7fa 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ var formApp = angular.module('formApp', []); // create angular controller and pass in $scope and $http - function formController($scope, $http) { + formApp.controller('formController', function ($scope, $http) { // create a blank object to hold our form information // $scope will allow this to pass between controller and view @@ -49,7 +49,7 @@ }; - } + });