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:
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
The code is available under:
- Codeberg (a non-commercial European hosted Git for Open Source): https://codeberg.org/ZuInnoTe/typescript-angular-example
- Github (an US hosted commercial Git platform): https://github.com/ZuInnoTe/typescript-angular-example
You can choose to either use EUPL-1.2 (Web) or Apache-2.0 (Web) license.
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.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
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.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.