GithubHelp home page GithubHelp logo

angular2_grocerylist_lab's Introduction

Angular Lab - Grocery List App

This project was generated with Angular CLI version 1.0.0.

Installation

Make Sure you have the Angula CLI installed.

BEFORE YOU INSTALL: please read the make sure you have the following prerequisites: Both the CLI and generated project have dependencies that require Node 6.9.0 or higher, together with NPM 3 or higher.

npm install -g @angular/cli

Create a new Angular project

ng new PROJECT-NAME
cd PROJECT-NAME

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.

Now you are ready to start coding!

The Application:

In This Lab you will be building a simple Grocery list application. In the App you will be able To Create a new list, add items and mark items as bought.

A picture is worth a thousand words:

grocery app

Step 1 - Components Data Binding & Directive:

In The First step you will create the application inside a single component. The application is made of 2 panels.

  • Grocery List Panel

    • this panel contains a form with a single input element that allows entering a new list name and an add button.

    • clicking on the button, creates a new list with the entered name and an empty array of items.

    • Below the form should be list of all the created list displaying their name and number of items it contains.

  • Edit List Panel

    • This Panel is displayed once a list from the above panel is selected by clicking on it.
    • This panel will contain a simple form with:
      • A Input element holding the selected list name. changing the value of this input and pressing enter will change the list name. which should refelect on the list panel display also
      • An Input element for adding items to the list. Entering a name and pressing enter will add a new item to the items list of the selected list.
    • A list of the selected list item, displaying the item title and a checkbox for checking if the item was bought or not.
      • when checking the check box the name should stirked through.

Step 2 - Component Composition

In this step you are required to split your single component into components and add inputs and outputs for every component.

angular2_grocerylist_lab's People

Contributors

noynir avatar angular-cli avatar

Watchers

James Cloos avatar  avatar

angular2_grocerylist_lab's Issues

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.