Angular CRUD template
Create, read, update and delete for one resource, built from the Styloviz components
One page — team members — offers the same record through a table or card grid, a create modal, an edit drawer and confirm dialogs that name the record; the modal and the drawer render one form component with one set of validation rules. State lives in one signal store over a mock API you swap for your own with one setting. Standalone Angular 21 components, Tailwind CSS 4 and a dark-mode toggle.
Included with a Styloviz Pro license. The download is a complete Angular project — npm install && npm start.


- form behind the modal and the drawer
- 1
- seeded members
- 14
- roles, each with what it grants
- 4
- sort orders
- 6
Walkthrough · 1:30
What it does, page by page
1. Members
OpenFourteen seeded members in a table or a card grid. Four stat tiles — Members, Active, Admins, Pending invites — are filters as well as counts; search by name or email, filter by role and by status (active, pending, inactive), and pick one of six sort orders. Invite member opens a modal and adds the person as Pending. Each row’s menu (its ⋯ button or a right-click) edits in a drawer that also shows invited-by, last active and last updated, copies the email, resends a pending invite, deactivates or reactivates, and removes. Select rows to change their role, deactivate, reactivate or remove them in one go. A remove confirm names the person — or, for a batch, how many and who — and closing a form with unsaved edits asks “Discard your changes?” first. The workspace can never lose its last owner or its last active owner.
Built from Styloviz components
The template is a composition of the same packages you install from npm — nothing in it is a one-off copy of a component.
| Component | Package | Used for |
|---|---|---|
| sv-data-table-pro | @styloviz-pro/data-table | the member table — selection, sortable headers, a sticky header row, loading and error states |
| sv-drawer | @styloviz-pro/overlays | the edit drawer |
| sv-confirm-dialog | @styloviz-pro/overlays | remove, bulk remove and discard-changes confirms |
| sv-dropdown-menu | @styloviz-pro/overlays | the role, status and sort filters, the row menu and the bulk role menu |
| sv-modal | @styloviz/modal | the invite dialog |
| sv-input-field | @styloviz/input-field | name and email in the shared member form |
| sv-select-dropdown | @styloviz/select-dropdown | the role picker, with what the role grants beneath it |
| sv-toggle-switch | @styloviz/toggle-switch | the Active switch |
| sv-empty-state | @styloviz/empty-state | no members yet, and nobody matches the filters |
| sv-avatar | @styloviz/avatar | each member, tinted from their name, with a status dot |
| sv-button | @styloviz/button | every action button |
| ThemeService | @styloviz/core | the light / dark toggle in the header |
| sv-icon-pro | @styloviz-pro/icons | every glyph — the template registers the ones it names |
What it would cost to build
Our estimate for building the same thing from scratch is 1–2 weeks for one experienced Angular developer — roughly 50–70 hours for the shared form, the four surfaces, the filters, bulk actions and owner rules, and the specs — before any of your own backend work. It is an estimate, not a measurement.
Questions
Does it connect to my backend?
Yes. Set CRUD_API.baseUrl in crud.config.ts and CrudStore loads the members with GET /workspace , then sends each invite, edit, bulk change and removal as one POST /changes carrying the whole records it changed and the ids it removed. Leave it empty and the 14 demo members load through the same code after demoLatencyMs , so the table’s loading and retry states are real. Writes are optimistic: a refused one is put back and a banner says so. The page reads the store and never the transport, so nothing in pages/ changes.
Can I reuse the form in my own app?
Yes — that is the point of the template. sv-member-form takes initial , disabled and error , emits submitted and dirtyChange , and exposes valid , dirty , submit() and reset() . It owns no submit button, so each surface puts Save where it belongs. The rules are plain functions ( validateMember in crud.data.ts ) a server can apply too.
What stops someone removing the last owner?
The store. Remove is disabled for the only owner, a bulk remove that would leave no owner is refused, the only owner cannot be given another role, and deactivating the last active owner — one at a time or in bulk — is refused with a message saying why.
Which Angular and Tailwind versions does it need?
Angular 21 or 22 with standalone components and signals, and Tailwind CSS 4. The download is a complete Angular project: npm install && npm start .
What license covers it?
The CRUD template is part of Styloviz Pro. A Pro license covers the template and the Pro packages it imports, including use in client projects.
Looking for something else? See every template