Gathering detailed insights and metrics for angular-material
Gathering detailed insights and metrics for angular-material
npm install angular-material
Typescript
Module System
Node Version
NPM Version
99.1
Supply Chain
100
Quality
75.2
Maintenance
50
Vulnerability
100
License
JavaScript (83.71%)
SCSS (7.69%)
HTML (7.18%)
CSS (0.83%)
Shell (0.37%)
BitBake (0.22%)
Total Downloads
17,921,257
Last Day
8,876
Last Week
40,677
Last Month
194,207
Last Year
2,557,342
16,524 Stars
4,950 Commits
3,379 Forks
707 Watching
53 Branches
395 Contributors
Minified
Minified + Gzipped
Latest Version
1.2.5
Package Id
angular-material@1.2.5
Unpacked Size
10.80 MB
Size
1.74 MB
File Count
540
NPM Version
6.14.16
Node Version
12.22.12
Cumulative downloads
Total Downloads
Last day
-9.9%
8,876
Compared to previous day
Last week
-18.7%
40,677
Compared to previous week
Last month
11.1%
194,207
Compared to previous month
Last year
12.8%
2,557,342
Compared to previous year
4
Support for legacy AngularJS ended on January 1st, 2022.
See @angular/core
for the actively supported Angular.
See the following, related, actively supported Angular packages:
This repository was used to publish the AngularJS Material v1.x library and localized installs
using npm
. You can find the component source-code for this library in the
AngularJS Material repository. This package and related repositories
have reached End-of-Life.
AngularJS Material is an implementation of Google's Material Design Specification (2014-2017) for AngularJS (v1.x) developers.
For an implementation of the Material Design Specification (2018+), please see the Angular Material project which is built for Angular (v2+) developers.
Included in this repository are the:
Note these are already included in the
angular-material.css
files. These copies are for direct developer access and contain IE flexbox fixes; as needed.
You can install this package locally with npm
.
Please note: AngularJS Material requires AngularJS 1.7.2 to AngularJS 1.8.x.
1# To install latest formal release 2npm install angular-material 3 4# To install latest release and update package.json 5npm install angular-material --save 6 7# To install from HEAD of master 8npm install http://github.com/angular/bower-material/tarball/master 9 10# or use alternate syntax to install HEAD from master 11npm install http://github.com/angular/bower-material#master --save 12# note: ^^ creates the following package.json dependency 13# "angular-material": "git+ssh://git@github.com/angular/bower-material.git#master" 14 15 16# To install the v1.2.1 version 17npm install http://github.com/angular/bower-material/tarball/v1.2.1 --save 18 19# To view all installed package 20npm list
You have installed the AngularJS library, next include the scripts and
stylesheet in your main HTML file, in the order shown in the example below. Note that NPM
will install the files under /node_modules/angular-material/
.
1<!DOCTYPE html> 2<html> 3<head> 4 <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /> 5 <link rel="stylesheet" href="/node_modules/angular-material/angular-material.css"> 6</head> 7 <body ng-app="YourApp"> 8 <div ng-controller="YourController"> 9 10 </div> 11 12 <script src="/node_modules/angular/angular.js"></script> 13 <script src="/node_modules/angular-aria/angular-aria.js"></script> 14 <script src="/node_modules/angular-animate/angular-animate.js"></script> 15 <script src="/node_modules/angular-messages/angular-messages.js"></script> 16 <script src="/node_modules/angular-material/angular-material.js"></script> 17 <script> 18 // Include app dependency on ngMaterial 19 angular.module('YourApp', ['ngMaterial', 'ngMessages']) 20 .controller("YourController", YourController); 21 </script> 22</body> 23</html>
With the Google CDN, you will not need to download local copies of the distribution files. Instead, reference the CDN URLs to use those remote library files. This is especially useful when using online tools such as CodePen, Plunker, or jsFiddle.
1<head> 2 <!-- Angular Material CSS now available via Google CDN; version 1.2.1 used here --> 3 <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.2.1/angular-material.min.css"> 4</head> 5<body> 6 7 <!-- Angular Material Dependencies --> 8 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script> 9 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular-animate.min.js"></script> 10 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular-aria.min.js"></script> 11 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular-messages.min.js"></script> 12 13 <!-- Angular Material Javascript now available via Google CDN; version 1.2.1 used here --> 14 <script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.2.1/angular-material.min.js"></script> 15</body>
Note that the above sample references the 1.2.1 CDN release. Your version will change based on the latest stable release version.
/node_modules/angular-mocks/angular-mocks.js
/node_modules/angular-material/angular-material-mocks.js
Shown below is a karma-configuration file (karma.conf.js
) sample that may be a useful template for
your testing purposes:
1module.exports = function(config) { 2 3 var SRC = [ 4 'src/myApp/**/*.js', 5 'test/myApp/**/*.spec.js' 6 ]; 7 8 var LIBS = [ 9 'node_modules/angular/angular.js', 10 'node_modules/angular-animate/angular-animate.js', 11 'node_modules/angular-aria/angular-aria.js', 12 'node_modules/angular-messages/angular-messages.js', 13 'node_modules/angular-material/angular-material.js', 14 15 'node_modules/angular-mocks/angular-mocks.js', 16 'node_modules/angular-material/angular-material-mocks.js' 17 ]; 18 19 config.set({ 20 basePath: __dirname + '/..', 21 frameworks: ['jasmine'], 22 23 files: LIBS.concat(SRC), 24 25 port: 9876, 26 reporters: ['progress'], 27 colors: true, 28 29 autoWatch: false, 30 singleRun: true, 31 browsers: ['Chrome'] 32 }); 33};
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 23/28 approved changesets -- score normalized to 8
Reason
SAST tool detected but not run on all commits
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
57 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More