Is this a silly question?
$scope.registration = {
email: "",
userName: "",
password: "",
confirmPassword: "",
firstName: "DummyFirstName",
lastName: "DummyLastName"
};
I want to set the userName
to be the same as the email
.
I attempted the following:
$scope.registration = {
email: "",
userName: email,
password: "",
confirmPassword: "",
firstName: "DummyFirstName",
lastName: "DummyLastName"
};
but I received an error saying it does not exist.