0

I have a object that gets populated via a restful API in my root scope and then in my child scope I'm trying to populate some input fields.

child controller

$scope.profileForm = $scope.$parent.student;

this works and I can

console.log($scope.profileForm.FirstName);

but the input on my page does not populate?

<input ng-model="profileForm.FirstName" type="text" class="form-control form-control-first" id="first-name-input" placeholder="FIRSTNAME" required />

Any help would be great :)

1 Answer 1

1

Fixed! :) i Had

<form name="profileForm" ... />

which messes up the scope variable, duh!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.