March 2018
Intermediate to advanced
364 pages
8h 21m
English
The last piece of supporting CRUD is the ability to remove users from the list. This case is very similar to all the other cases:
Let's start with the component and add support in the markup, as well as adding a remove() method to the component class, like so:
// app.component.ts - adding remove capabilityimport { Component } from "@angular/core";import { AppState } from "./app-state";import { Store } from "@ngrx/store";import { map } from "rxjs/operators";@Component({ selector: "app-root", template: ` <div style="border: solid 1px black; padding: 10px;" *ngFor="let user of users$ ...
Read now
Unlock full access