My Blog

My WordPress Blog

My Blog

My WordPress Blog

Day: September 16, 2024

Deployment

Simple deployment options Before fully deploying your application, you can test the process, build configuration, and deployed behavior by using one of these interim techniques. Building and serving from disk During development, you typically use the ng serve command to build, watch, and serve the application from local memory, using webpack-dev-server. When you are ready to deploy, however, […]

Form Handling

Let’s add a form to the UserComponent to allow adding new users. We’ll use Angular’s Reactive Forms module for this purpose. Generate a New Component Import ReactiveFormsModule Update src/app/app.module.ts to import ReactiveFormsModule: Create the Add User Form Modify src/app/add-user/add-user.component.ts to create a form: Add a Method to UserService Update src/app/user.service.ts to include a method for […]

Scroll to top