'Range input field in angular material

How can I implement a range input field using the angular material form field? It should look somehow similar to the range date picker but I could not figure out a way to implement this.

I want to implement e.g. a number input where the user can input a range. This should look similar to this example with the range date picker from angular material but for a standard number input field.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source