This project was generated with Angular CLI version 14.0.2.
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 build
to build the project. The build artifacts will be stored in the dist/
directory.
-
Angular error:
Can't bind to 'ngModel' since it isn't a known property of 'input'
=> you need to import the FormsModule package. -
You also need to import MatNativeDateModule if you are going to use
DatePicker
. -
You also need to import ReactiveFormsModule if you are going to use
[formGroup]
. -
You subscribe by calling the
subscribe()
method of the instance, passing an observer object to receive the notifications.