Why am i getting this error in simple angularjs program?

angular

#1

HI,
I’m getting this error,

Argument 'ctrl1' is not a function, got undefined

on running the latest angularjs v1.3.15. Should my syntax be any different here?

This is the HTML

<body ng-app="app">

  <div ng-controller="ctrl1">

      {{color}}

      {{root_color}}

  </div>

  <div ng-controller="ctrl2">

      {{color}}

      {{root_color}}

  </div>

  </body>

And this is the angularjs code

angular.module('app', []).controller('ctrl1', ['$scope', function ctrl1($scope){

    $scope.color = "yellow";
    $scope.root_color = "red";
   }]);
  angular.module('app', []).controller('ctrl2', ['$scope', function ctrl2($scope){

    $scope.color = "yellow";
    $scope.root_color = "red";

   }]);

Thank You
Alexa Caroline