1
2
Fork
You've already forked typescript-angular-example
0
Example for an Angular application based on Angular Material
  • Roff 51.9%
  • TypeScript 27.3%
  • HTML 14.1%
  • SCSS 6.7%
2025年11月22日 12:25:21 +01:00
.github/workflows feat: nodejs 24 2025年11月22日 12:19:28 +01:00
docs/img init 2023年05月06日 21:40:00 +02:00
src feat: migrate vitest 2025年11月22日 12:18:00 +01:00
.gitignore init 2023年05月06日 00:07:01 +02:00
.nvmrc set node version 2025年11月22日 12:25:21 +01:00
.prettierignore init 2023年05月06日 00:07:01 +02:00
.prettierrc init 2023年05月06日 00:07:01 +02:00
angular.json feat: migrate vitest 2025年11月22日 12:18:00 +01:00
LICENSE-Apache-2.0 init 2023年05月06日 00:07:01 +02:00
LICENSE-EUPL-1.2 init 2023年05月06日 00:07:01 +02:00
package-lock.json feat: migrate vitest 2025年11月22日 12:18:00 +01:00
package.json feat: migrate vitest 2025年11月22日 12:18:00 +01:00
README.md docs: small fixes 2023年05月13日 12:12:09 +02:00
tsconfig.app.json init 2023年05月06日 00:07:01 +02:00
tsconfig.json feat: migrate vitest 2025年11月22日 12:18:00 +01:00
tsconfig.spec.json feat: migrate vitest 2025年11月22日 12:18:00 +01:00

This is a simple example frontend written in Typescript using Angular in combination with the Angular Material UI.

Compared to the standard Angular application generator it includes Angular Material UI with some sensible default settings and makes the icons/fonts available directly in the application without the need to fetch them everytime from Google.

The idea is that you simply can take this example and quickly write your application without the need to spend a lot of time on setting it initially up.

Note: Make sure that you have in your path the latest Node.js LTS version available.

You can try out the app on CodeSandbox and play live with the code: https://codesandbox.io/p/github/ZuInnoTe/typescript-angular-example/

This is how the demo app looks like in the browser:

Screenshot of Demo App

You see on the top a menu bar with 3 buttons:

  • On the left a "Module 1" button for Module 1 showing an Angular Material table
  • Next to it a "Module 2" button for Module 2 showing an advanced Angular Material form
  • On the right a setting button not doing anything

Code

The code is available under:

License

You can choose to either use EUPL-1.2 (Web) or Apache-2.0 (Web) license.

Build

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.