Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the version of Angular Material

I am using Linux and I want to know if I can check what version of angular-material am using. I'm using bower for installing/updating packages.

like image 722
Niels Lucas Avatar asked Sep 14 '15 13:09

Niels Lucas


People also ask

How do you know Angular material is installed or not?

Type npm -v in the terminal to check if npm is installed or not in our system. It displays the version of npm. Angular installations are easy with the help of Angular CLI. Visit https://cli.angular.io/ to get the reference of the command.

How do I check my version of Angular?

Checking the Angular VersionOpen the Terminal + view in your project and type ng --version . For recent versions of Angular, this will list the versions of several Angular packages that you have installed in your project.

Which is Angular material?

Angular Material is a User Interface (UI) component library that developers can use in their Angular projects to speed up the development of elegant and consistent user interfaces. Angular Material offers you reusable and beautiful UI components like Cards, Inputs, Data Tables, Datepickers, and much more.


2 Answers

If installed with npm

npm list @angular/material

If installed with yarn

yarn list @angular/material

If installed with bower, as in OP case

You can check out what version of angular-material you use by opening the following file:

bower_components/angular-material/bower.json

which will display something like that:

{
  "name": "angular-material",
  "version": "0.11.0",
  ...
}

Or as Matt pointed, use bower list, then lookup for angular-material.

like image 60
Michael P. Bazos Avatar answered Oct 12 '22 05:10

Michael P. Bazos


Looks like you can use npm ls @angular/material to tell you the exact version.

like image 41
Tim Tharratt Avatar answered Oct 12 '22 04:10

Tim Tharratt