Giter Site home page Giter Site logo

ng-client's People

Contributors

aaronglang avatar angular-cli avatar brianparcel avatar brianschardt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ng-client's Issues

Company list page isnt displaying companies

So looking at the backend's response I get something like which seems fine :

{"companies":[{"id":1,"name":"xxx","createdAt":"2018-09-21","updatedAt":"2018-09-21","Users":[{"id":1,"first":"Andy","last":"xxx","email":"[email protected]","phone":"0000000000","password":"xxx.","createdAt":"2018-09-22T00:00:00.000Z","updatedAt":"2018-09-22T00:00:00.000Z","UserCompany":{"createdAt":"2018-09-21T19:38:41.000Z","updatedAt":"2018-09-21T19:38:41.000Z","CompanyId":1,"UserId":1}}],"UserCompany":{"createdAt":"2018-09-21T19:38:41.000Z","updatedAt":"2018-09-21T19:38:41.000Z","CompanyId":1,"UserId":1},"users":[{"user":1}]}],"success":true}

But on the company-list class when I display companies variable I get this instead :

companies: [User]
0: User {_events: {…}, id: 1, first: "Andy", last: "xxx", email: "[email protected]", …}

This of course will impact the template which will not find company's name and thus will not display companies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.