Angular 19 frontend for the Polling application.
- Node.js 18+
- Firefox (used as the test browser)
- The Polling-API backend running locally or accessible via the configured
apiUrl
npm installng serveNavigate to http://localhost:4200/. The app reloads automatically on file changes.
ng buildBuild artifacts are output to the dist/ directory.
Tests use Karma + Jasmine with Firefox (headless by default).
# Run all tests once (no watch)
npx ng test --watch=false
# Run tests in watch mode (reruns on file changes)
npx ng test- The test browser is FirefoxHeadless (configured in
karma.conf.js). Firefox must be installed. - Components are Angular 19 standalone — specs use
imports: [ComponentName](notdeclarations). - HTTP services use
HttpClientTestingModule; standalone component specs useprovideHttpClient()+provideHttpClientTesting(). StorageServicetests mocksessionStorageviaObject.definePropertyfor Firefox compatibility.- Navigation in production code uses Angular
Router(notwindow.location) to keep tests framework-friendly.
Run ng help or see the Angular CLI documentation.