GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — angular-workshop/README.md at main · 9elements/angular-workshop

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
39 lines (24 loc) · 1.51 KB
/

README.md

Copy path

File metadata and controls

39 lines (24 loc) · 1.51 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Angular Counter Component

📖 This example is part of the free online book: Testing Angular – A Guide to Robust Angular Applications . 📖

Overview

This repository builds a simple counter with Angular in three ways:

  • CounterComponent: Counter that manages its own state. Has an Input and an Output.
  • ServiceCounterComponent: Counter that stores the state in shared service.
  • NgRxCounterComponent: Counter that uses NgRx to manage the count and NgRx effects to persist them on the server.

Related projects

  • Angular Flickr Search – a more complex example app
  • Angular testing workshop

Development server

  • Clone the repository, change into the angular-workshop directory
  • npm install
  • npm install -g @angular/cli
  • ng serve
  • Navigate to http://localhost:4200/

Running unit & integration tests

Run ng test to execute the unit & integration tests with Karma and Jasmine.

Running end-to-end tests with Cypress

Run ng run angular-workshop:cypress-run to execute the Cypress end-to-end tests. (This starts the development server automatically.)

Run ng run angular-workshop:cypress-open to start the interactive Cypress test runner.

Deployment

Run npm run deploy to the deploy the code to [https://9elements.github.io/angular-workshop/].

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.