Skip to content

christophglass/angular-workshop

 
 

Repository files navigation

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:

Related projects

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

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.

Protractor

Run ng e2e to execute Cypress end-to-end tests. (This starts the development server automatically.)

Deployment

Run ng deploy --base-href=/angular-workshop/ to the deploy the code to [https://9elements.github.io/angular-workshop/].

About

Learning Angular: From component state to NgRx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 93.8%
  • HTML 2.9%
  • JavaScript 1.8%
  • CSS 1.5%