I have this form. This form contains many many inputs like first name, last name, job title, notes, state, department, documents, supervisor...and so on
Originally I had a controller like so
app.controller("titleCtrl", function ($scope)
{
$scope.FirstName = ...
$scope.LastName = ...
$scope.Notes = ....
$scope.JobTitle = ...
$scope.Department = ...
$scope.Supervisor = ...
$scope.Documents = ...
$scope.ID = function(data){
}
//and 15 more fields......
});
I've learned that declaring variables on the scope like this isn't really the best practice. My question is what is best practice? What's the best/optimal way for declaring 20 or so variables within a controller?