Giter Site home page Giter Site logo

fullstack-js-app's People

Contributors

nickandersonr avatar zebgirouard avatar

Watchers

 avatar  avatar

fullstack-js-app's Issues

The DB is working...

...as I can see Postman is adding an id and _v, even though there is no other content. I'm hoping this is a formatting issue on my part, I'm sending text/Json, not sure. But at least the route and db are connected.

However, I can't get cards to display on page via my index.html. In my html (ng-repeat section, just like I checked in criminals app):

          <div class="card">
            <h4 class="card-title">{{card.question}}</h4>
            <h6>Cards Against Assembly</h6>
          </div>
          <wdi-card question="{{card.question}}"></wdi-card>

And controller:

CardsController.$inject = ['$http'];
function CardsController($http){
var self = this;
self.all = [];
self.addCard = addCard;
self.newCard = {};
self.getQuestions = getQuestions;
self.getQuestion = getQuestion;

// GET
function getQuestions(){
$http
.get('https://localhost:3000/cards')
.then(function(response){
self.all = response.data.questions;
console.log(response.data);
});
}
getQuestions();

But no cards are showing up- tried multiple ways, checked out mongoose books, criminals, and the wine app...but still not sure what I'm doing wrong.

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.