I am still following MV demo tutorial.
I am stuck to the point of update items (not user). Here's what I do.
There is the item detail page. Click 'edit button' and it goes to 'updateItem.jade'..
and the page 'shows all the data of the item in input areas'.
While trying to show all the current data on 'updateItem.jade', I have no idea what codes should be placed on 'updateItemCtrl.js'. This could be done under only 'admin'.
The codes from 'mvProfileCtrl.js' below..
$scope.username = mvIdentity.currentUser.username;
$scope.fname = mvIdentity.currentUser.firstName;
$scope.lname = mvIdentity.currentUser.lastName;
I'm not able to diagnose the issue from your description. I can say that the code will work if you follow the course 100%. If something isn't working, it's almost definitely because you have missed something.
I am still following MV demo tutorial. I am stuck to the point of update items (not user). Here's what I do.
There is the item detail page. Click 'edit button' and it goes to 'updateItem.jade'.. and the page 'shows all the data of the item in input areas'. While trying to show all the current data on 'updateItem.jade', I have no idea what codes should be placed on 'updateItemCtrl.js'. This could be done under only 'admin'.
The codes from 'mvProfileCtrl.js' below.. $scope.username = mvIdentity.currentUser.username; $scope.fname = mvIdentity.currentUser.firstName; $scope.lname = mvIdentity.currentUser.lastName;
what do I replace 'mvIdentity.currentUser' with?