meanjs / mean

MEAN.JS - Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js -
http://meanjs.org
MIT License
4.87k stars 1.98k forks source link

User data's are not getting after refreshed the setting page? #1951

Closed Maniselvam006 closed 6 years ago

Maniselvam006 commented 6 years ago

Hi guys I am using MEAN stack in my application with AngularJS as my front-end. after signup into the portal, in setting profile page user data's are fetching fine and displaying perfectly, while refreshed the page user information and data's are not showing , the input fields are displaying empty . please look the following screen shots. stting page

after refresh

umairch commented 6 years ago

Boy can you please share your code? So i can help you more appropriately.

umairch commented 6 years ago

you're getting no data after refreshing? or getting incomplete content.?

umairch commented 6 years ago

Share your particular module Please.

Maniselvam006 commented 6 years ago

Thanks for your comment, please look at my second screen shots, only first name, last name and email only showing other field data's are not displaying... In users module:-

then in my edit-profile.client.view.html:-

`

      <input type="text" id="religion" name="religion" class="form-control" ng-model="vm.user.religion" placeholder="Religion" required>
      <div ng-messages="vm.userForm.religion.$error" role="alert">
        <p class="help-block error-text" ng-message="required">Religion is required.</p>
      </div>
    </div>` 

  <div class="col-md-6 form-group" show-errors>
      <label for="location">Location</label>
      <input type="text" id="location" name="location" class="form-control" ng-model="vm.user.location" placeholder="Location" required>
      <div ng-messages="vm.userForm.location.$error" role="alert">
        <p class="help-block error-text" ng-message="required">Location is required.</p>
      </div>
    </div>
  • Please let us know what i have missed it? and how to solve this issue.
umairch commented 6 years ago

can you please share your whole module in rar file ?so i can check or if you have online git repo please share, I have to see your client route, server controller , client controller and serve route of particular module.

Maniselvam006 commented 6 years ago

users.zip i have attached my user module on above please check and let us know thank you so much for your help...

umairch commented 6 years ago

can you please call me at umairsch at skype and share you r screen

Maniselvam006 commented 6 years ago

thanks for sharing your skype ID will do call but not right now... have you found the solution?

umairch commented 6 years ago

what is exact page name where you're showing this data.

Maniselvam006 commented 6 years ago

the exact page path is :- users->client->views->settings-> edit-profile.client.view.html in this page only we are trying to display user information

Maniselvam006 commented 6 years ago

@umairch any solutions?

umairch commented 6 years ago

@Maniselvam006 you are still stuck on this ?

umairch commented 6 years ago

I told you to share your screen or PR So I can help you accordingly.

Maniselvam006 commented 6 years ago

@umairch thanks for your helping thoughts ... i solved the issue ... i just add needed model values in core.server.controller.js it's solved my issues thanks...keep in touch..

umairch commented 6 years ago

😄