Giter VIP home page Giter VIP logo

angulartodo's Introduction

NickTodo

Introduction

This project illustrates many of the basic features of a fairly robust Angular application.

It demonstrates a number of Angular features, including:

  • Components
  • Routing
  • Databinding
  • Events
  • HTTP Services and use of a REST API
  • Use of Observables
  • Reactive Forms
  • Validation and Custom Validation
  • Dependency Injection of Services
  • Component Lifecyle
  • Directives, Structural Directives, and Custom Directives
  • use of <ngcontent>

Process

The code is divided into 20 branches, ranging from Step1 to Step20.

Each branch has a "lesson", that is, a demonstration of some new feature. Thus, the todo application is slowly built and improved with each branch.

The document ToDoChanges.md describes each step and what new code has been added. There also comments in the code where new items were added, and thus on each step, you can search this pattern -- "Step X" -- to find new code for each level.

Getting Set Up

Here's my suggestion for getting set up and running.

  1. Pull the code for this project into a directory on your local machine.
  2. If you aren't already set up for Angular, open up the slides found in the slides directory on the master branch and follow the directions for getting setup, including installing Angular, json-server, etc. (Note the last one -- you'll need it for the HTTP service).
  3. Open a command prompt (preferably PowerShell) and navigate to the directory that you put the code in.
  4. Type the following: ng serve --open. This will start and open the main application. Minimize this command prompt window and just leave it. The application will automatically update in the browser as you progress through the steps.
  5. Go to the branch Step2 and find the file db.json. Put it into a separate directory. Open a command prompt in that directory and type the following: json-server --watch db.json -i id. Minimize the command prompt window and leave it there. This will be the source of data for the Todo application.
  6. At this point, you should be ready to go through each step (branch) and see the application slowly getting built. Checkout Step3 through Step20 and watch the changes in the application in the browser.

angulartodo's People

Contributors

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