Giter Site home page Giter Site logo

hackjam-angular-pizza's Introduction

Setup

git clone
https://github.com/hackages/hj-pizza-angular.git
cd hj-pizza-angular
npm run install

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

hj-intro-angular

--English--

What you have to do

This application is broken. Your goal is to repair it.

Here we have four main components. The basket, header, home and pizzalist.

  • The basket component only handles the final amount of money you'll have to pay after choosing your pizzas.
  • The header component, as you can see in its html file, contains the basket. You don't have to do anything with it.
  • The home component is the one which will contain the functions of the button to reset, to buy.
  • Finally, the pizzalist component where you'll write the function to select the number of pizza of each kind you want.

First, you should check the app.module.ts file. Some things are missing.

After that, check the error in the console of your browser and try to understand what is wrong and how can you fix it.

Don't hesitate to use the angular doc : https://angular.io/docs

About the Input/Output/EventEmitter, you can use this article :

https://blog.hackages.io/angular-component-interaction-with-input-output-and-eventemitter-72526422b95c

--Français--

Ce que vous devez faire

L'application est cassée et votre objectif est de la réparer.

Il y a quatre principaux composants : "Basket", "header", "home" et "pizzalist"

  • Le composant basket ne s'occupe que de la somme total à payer après avoir choisi vos pizzas.
  • Le composant header, comme vous pouvez le voir dans son fichier html, contient le composant basket. Il n'y a rien de particulier à gérer au niveau de ce composant.
  • Le composant home est celui qui contiendra les fonctions des boutons rénitialiser et acheter.
  • Enfin, le composant pizzalist est celui où vous écrirez les fonctions pour selectionner le nombre de pizza du type que vous souhaitez.

En premier lieu, vous devriez vous occuper du fichier app.module.ts. Quelques éléments manquent...

Après cela, ouvrez la console de votre navigateur et regardez les erreurs. Essayez de les comprendre et de comprendre comment pouvez-vous les réparer.

N'hésitez pas à vous servir de la documentation d'Angular :

https://angular.io/docs

En ce qui concerne les Input/Output/EventEmitter, vous pouvez vous servir cet article (en anglais) :

https://blog.hackages.io/angular-component-interaction-with-input-output-and-eventemitter-72526422b95c

hackjam-angular-pizza's People

Stargazers

 avatar

Watchers

 avatar  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.