Coder Social home page Coder Social logo

java-mod-8-angular-lab-2's Introduction

Angular Lab 2

Instructions

Create a new property in your class component to model a list of athletes. Each athlete should have the following properties:

  1. Name: this is the full name of the athlete, e.g. "Bill Russell"
  2. Sport: this is the sport that the athlete plays (or played), e.g. "NBA Basketball"
  3. Active: this is a flag that indicates whether the athlete is active

Populate your athlete list with at least 3 athletes from 3 different sports and update your view to display the list of athletes from your model. Your output should look similar to this:

* Bill Russell (NBA Basketball) is not active * Gabriela Sabatini (WTA Tennis)
is not active * Simone Biles (Olympic Gymnast) is active

Hint: You will need to use the *ngIf directive alongside the active property to display either the "is active" or the "is not active" text for each athlete. *ngIf can be used in the following way: <span *ngIf="boolean expression">conditional text</span>

java-mod-8-angular-lab-2's People

Contributors

alveem avatar

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.