Giter Site home page Giter Site logo

einanas / connect-your-tribe-squad-page Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fdnd-task/connect-your-tribe-squad-page

0.0 0.0 0.0 112.2 MB

Ontwerp en maak een website voor je squad met Node en JSON

Home Page: https://sore-ruby-leopard-suit.cyclic.app/

License: MIT License

JavaScript 69.83% EJS 26.84% CSS 3.33%

connect-your-tribe-squad-page's Introduction

connect-your-tribe-squad-page's People

Contributors

koopreynders avatar einanas avatar ju5tu5 avatar

connect-your-tribe-squad-page's Issues

Tip bij het invoeren van html in een data om iets op te roepen.

Het eerst fout die ik had gemaakt was dat ik mijn code zo onderelkaar had geschreven:

<%- include('./partials/head') %>

<h2>Students</h2>
<ul>
  <% persons.forEach(person => { %>
    <li><a href="./person/<%= person.id %>"><%= person.name %></a>, squad_id <%= person.avatar %></li>
  <% }) %>
</ul>

<%- include('./partials/foot') %>

<li>
  <section class="name of person">
    <h1><%= person.name %></h1>
    <img src="<%= person.avatar %>" alt="avatar van een student">
    <p><%= person.bio %></p>
  </section>
</li>

Maar ik kreeg telkens error te zien. Dus bij de code review met Krijn heb ik als tip gekregen dat ik mijn code beter zo moest invullen om de juiste data op te halen die ik nodig heb:

<%- include('./partials/head') %>

<h2>Students</h2>
<ul>
  <% persons.forEach(person => { %>
    <li>
      <section class="name of person">
        <h1><%= person.name %></h1>
        <img src="<%= person.avatar %>" alt="avatar van een student">
        <p><%= person.bio %></p>
      </section>
    </li>
  <% }) %>
</ul>

<%- include('./partials/foot') %>

Wat je eigenlijk kunt zien is dat ik de <li> gedeelte in de <% persons.forEach(person => { %> moest plaatsen om de juiste data op te halen door die code.

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.