Image for post
Image for post

Hi {{username}}.
Today I want to share with you an example of how I make a light and dark theme for sites using Angular Material.

Example: https://irwinjuice.github.io/angular-multiple-themes/

Complete code you can find on GitHub in ‘main’ branch.

Let’s get it started

First, let’s create a new project with scss as preprocessor and add custom Material.

ng new multiple-theming


Filtering data in Angular mat-table by specific columns.

I would like to share with you a solution to the problem of filtering data in Angular mat-table. It will be a question of filtering not the entire table, but the specific columns of this table.

All source and demo you can find on GitHub or Stackblitz.

Let’s start

For example, take a search for routes between two stations and a date.

In my case, these are three columns are filtered:

DEP. Date | DEP. Station | ARR. Station

Image for post
Image for post
The result of the work

I don’t see any sense in showing how to create a mat-table, there are no differences from what you find on the official Angular Material website. …

About

Maxim Sevriukov

JAVA / ANGULAR software engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store