Giter Site home page Giter Site logo

prueba-angular's Introduction

Customer List

Environment

  • Angular CLI Version: 10.0.4
  • Angular Core Version: 10.0.4
  • Node Version: 12(LTS)
  • Default Port: 8000

Application Demo:

Functionality Requirements

The component must have the following functionalities:

  • The input should initially be empty.

  • If no value is entered, clicking on the Add Customer button should not do anything.

  • If a value is present, clicking on the Add Customer button should add the input value to the list below. For this, add <li>{input}</li> to the <ul data-test-id="customer-list"> element.

  • After adding the value to the list, clear the value of the input box.

  • Please note that the customer list <ul> element should only be rendered if it has at least one customer added (i.e., at least one <li> child). So initially, when the app is mounted, the <ul> element should not be rendered since no customers have been added.

  • All the values added by the button should be rendered in the list below.

Testing Requirements

  • The input should have the data-test-id attribute app-input.
  • The button should have the data-test-id attribute submit-button.
  • The customer list <ul> should have the data-test-id attribute customer-list.
  • Elements in the list should have the data-test-id attribute as list-item0, list-item1, list-item2, list-item3, and so on.

Project Specifications

Read Only Files

  • src/app/app.component.spec.ts
  • src/app/customer-list/customer-list.component.spec.ts

Commands

  • run:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm start
  • install:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm install
  • test:
bash bin/env_setup && . $HOME/.nvm/nvm.sh && npm test

prueba-angular's People

Contributors

leoneider avatar

Stargazers

didier47 avatar

Watchers

 avatar

Forkers

didier47

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.