All Projects → marinantonio → Angular Mat Table Crud

marinantonio / Angular Mat Table Crud

CRUD operations for the Angular Material Table

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Angular Mat Table Crud

ncg-crud-ngx-md
Angular 4+ Material Design CRUD/Admin app by NinjaCodeGen http://DNAfor.NET
Stars: ✭ 36 (-87.63%)
Mutual labels:  crud, angular-material
Go On Rails
🚄 Use Rails to Develop or Generate a Golang Application.
Stars: ✭ 275 (-5.5%)
Mutual labels:  crud
CRUDReactNativeSQLite
CRUD de app em React Native utilizando armazenamento local com SQLite
Stars: ✭ 16 (-94.5%)
Mutual labels:  crud
angular-forum
Forum application built with Angular
Stars: ✭ 52 (-82.13%)
Mutual labels:  crud
helppo
Instant admin UI for your database
Stars: ✭ 14 (-95.19%)
Mutual labels:  crud
Vanilla Rtb
Real Time Bidding (RTB) - Demand Side Platform framework
Stars: ✭ 257 (-11.68%)
Mutual labels:  crud
angular-material-swipe-to-refresh
Swipe to refresh (pull to refresh) for Angular Material
Stars: ✭ 15 (-94.85%)
Mutual labels:  angular-material
Django Easy Audit
Yet another Django audit log app, hopefully the simplest one.
Stars: ✭ 289 (-0.69%)
Mutual labels:  crud
Redux Orm
A small, simple and immutable ORM to manage relational data in your Redux store.
Stars: ✭ 2,922 (+904.12%)
Mutual labels:  crud
Angular-Movies
Angular Movies | TV Shows is a simple web app that consumes The Movie DB API - Angular 13 + Material Angular
Stars: ✭ 35 (-87.97%)
Mutual labels:  angular-material
crudify
A Laravel 8 CRUD package for rapid scaffolding and development.
Stars: ✭ 17 (-94.16%)
Mutual labels:  crud
prophet
用于构建 react 中后台前端应用框架
Stars: ✭ 12 (-95.88%)
Mutual labels:  crud
Flutter Redux Starter
Starter project and code generator for Flutter/Redux
Stars: ✭ 262 (-9.97%)
Mutual labels:  crud
nest-angular
Full-stack with nest js & angular 8
Stars: ✭ 32 (-89%)
Mutual labels:  angular-material
Saturn Datepicker
Angular Material Datepicker with range selection
Stars: ✭ 280 (-3.78%)
Mutual labels:  angular-material
FISCO-BCOS
FISCO BCOS是由微众牵头的金链盟主导研发、对外开源、安全可控的企业级金融区块链底层技术平台。 单链配置下,性能TPS可达万级。提供群组架构、并行计算、分布式存储、可插拔的共识机制、隐私保护算法、支持全链路国密算法等诸多特性。 经过多个机构、多个应用,长时间在生产环境中的实践检验,具备金融级的高性能、高可用性及高安全性。FISCO BCOS is a secure and reliable financial-grade open-source blockchain platform. The platform provides rich features including group architecture, cross-chain communication protoc…
Stars: ✭ 1,603 (+450.86%)
Mutual labels:  crud
ux
Laravel UI, Auth, & CRUD scaffolding package using Bootstrap & Livewire.
Stars: ✭ 34 (-88.32%)
Mutual labels:  crud
model-orm-php
PHP ORM Model class which provides table column/property mapping, CRUD, and dynamic finders/counters on a database table using PDO
Stars: ✭ 18 (-93.81%)
Mutual labels:  crud
Dommel
CRUD operations with Dapper made simple.
Stars: ✭ 291 (+0%)
Mutual labels:  crud
Angular Ssr
Angular 4+ server-side rendering solution compatible with @angular/material, jQuery, and other libraries that touch the DOM (as well as providing a rich feature set!)
Stars: ✭ 283 (-2.75%)
Mutual labels:  angular-material

CRUD for Angular Material Table

Project showcasing my CRUD (Create, Read, Update, Delete) implementation on Angular's Mat-Table. Most importantly frontend updates accordingly with operations. This is important if you're using data from backend (some DB like MySQL) but I guess It can be used for local generated data as well.

Project is updated and now runs on Angular version 8 including Angular Material 8.

Screenshots

Code in action:

Alt Text

REST API

Here's a sample from my real-life application (sorry for Croatian):

Alt Text

Angular app using PHP RESTful API does backend updates to MySQL DB. You can find entire HttpClient REST code from this project inside dataService.

Demo

You can play around with code demo here.

Refresh function

Material Table updates if you do a pagination or filter update. You can trigger that with simple method as follows:

private refreshTable() {
  this.paginator._changePageSize(this.paginator.pageSize);
}

Credits to yeager-j for providing the refresh function

Old method:

private refreshTable() {
    // if there's a paginator active we're using it for refresh
    if (this.dataSource._paginator.hasNextPage()) {
      this.dataSource._paginator.nextPage();
      this.dataSource._paginator.previousPage();
      // in case we're on last page this if will tick
    } else if (this.dataSource._paginator.hasPreviousPage()) {
      this.dataSource._paginator.previousPage();
      this.dataSource._paginator.nextPage();
      // in all other cases including active filter we do it like this
    } else {
      this.dataSource.filter = '';
      this.dataSource.filter = this.filter.nativeElement.value;
    }
  }

In case you have smaller dataset without need for a paginator you can update just using filter:

private refreshTable() {
    // if there's nothing in filter
    if (this.dataSource._filterChange.getValue() === '') {
        this.dataSource.filter = ' ';
        this.dataSource.filter = '';
    } else {
        // if there's something, we make a simple change and then put back old value
        this.dataSource.filter = '';
        this.dataSource.filter = this.filter.nativeElement.value;
    }
  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].