var app = angular.module("browseApp.mainctrls", []);

app.controller("header", function($scope){
//    $scope.header = "Welcome to Fey Anthology!";
});


/*
* Main controller for the category state.
*
*/
app.controller("controller_c", function($scope) {

$scope.$parent.header = "List of categories";

});

/*
* Main controller for the works list state.
*
*/app.controller("controller_l", function($scope) {

$scope.$parent.header = "List";

$scope.catID = $stateParams.catID;

});

/*
* Main controller for the new entry state.
*
*/
app.controller("controller_n", function($scope, $stateParams) {
$scope.$parent.header = "Submit something new";

$scope.catID = $stateParams.catID;

});

var app = angular.module("browseApp.mainctrls", []);

app.controller("header", function($scope){
//    $scope.header = "Welcome to Fey Anthology!";
});


/*
* Main controller for the category state.
*
*/
app.controller("controller_c", function($scope) {

$scope.$parent.header = "List of categories";

});

/*
* Main controller for the works list state.
*
*/app.controller("controller_l", function($scope, $stateParams) {

$scope.$parent.header = "List";

$scope.catID = $stateParams.catID;

});

/*
* Main controller for the new entry state.
*
*/
app.controller("controller_n", function($scope, $stateParams) {
$scope.$parent.header = "Submit something new";

$scope.catID = $stateParams.catID;

});

Add stateParams to controller functions
Add stateParams to controller functions
