Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular-material
Advanced tools
This repository is used only for Angular Material v1.x library deployments and localized installs using `npm` and `bower`. The actual component source-code for this library is in the [main Angular Material repository](https://github.com/angular/material).
This repository is used only for Angular Material v1.x library deployments and localized installs using npm
and bower
. The actual component source-code for this library is in the
main Angular Material repository.
Please file issues and pull requests against that
angular/material
repository only. Do not file issues here on the deployment repository.
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 either with npm
, jspm
, or bower
(deprecated).
Please note that Angular Material requires Angular 1.3.x or higher.
# To install latest formal release
npm install angular-material
# To install latest release and update package.json
npm install angular-material --save
# To install from HEAD of master
npm install http://github.com/angular/bower-material/tarball/master
# or use alternate syntax to install HEAD from master
npm install http://github.com/angular/bower-material#master --save
# note: ^^ creates the following package.json dependency
# "angular-material": "git+ssh://git@github.com/angular/bower-material.git#master"
# To install a v1.1.0-rc2 version
npm install http://github.com/angular/bower-material/tarball/v1.1.0-rc2 --save
# To view all installed package
npm list;
# To install latest formal release
jspm install angular-material
# To install from HEAD of master
jspm install angular-material=github:angular/bower-material@master
# To view all installed package versions
jspm inspect
Now you can use require('angular-material')
when installing with npm or jspm, or when using Browserify or Webpack.
# To get the latest stable version, use bower from the command line.
bower install angular-material
# To get the most recent, last committed-to-master version use:
bower install 'angular-material#master'
# To save the bower settings for future use:
bower install angular-material --save
# Later, you can use easily update with:
bower update
Now that you have installed the Angular libraries, simply 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/
and bower will install them
under /bower_components/angular-material/
.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/node_modules/angular-material/angular-material.css">
</head>
<body ng-app="YourApp">
<div ng-controller="YourController">
</div>
<script src="/node_modules/angular/angular.js"></script>
<script src="/node_modules/angular-aria/angular-aria.js"></script>
<script src="/node_modules/angular-animate/angular-animate.js"></script>
<script src="/node_modules/angular-material/angular-material.js"></script>
<script>
// Include app dependency on ngMaterial
angular.module( 'YourApp', [ 'ngMaterial' ] )
.controller("YourController", YourController );
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/bower_components/angular-material/angular-material.css">
</head>
<body ng-app="YourApp">
<div ng-controller="YourController">
</div>
<script src="/bower_components/angular/angular.js"></script>
<script src="/bower_components/angular-aria/angular-aria.js"></script>
<script src="/bower_components/angular-animate/angular-animate.js"></script>
<script src="/bower_components/angular-material/angular-material.js"></script>
<script>
// Include app dependency on ngMaterial
angular.module( 'YourApp', [ 'ngMaterial' ] )
.controller("YourController", YourController );
</script>
</body>
</html>
CDN versions of Angular Material are now available at Google Hosted Libraries.
With the Google CDN, you will not need to download local copies of the distribution files. Instead simply reference the CDN urls to easily use those remote library files. This is especially useful when using online tools such as CodePen, Plunkr, or jsFiddle.
<head>
<!-- Angular Material CSS now available via Google CDN; version 0.9.4 used here -->
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc2/angular-material.min.css">
</head>
<body>
<!-- Angular Material Dependencies -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-animate.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-aria.min.js"></script>
<!-- Angular Material Javascript now available via Google CDN; version 0.9.4 used here -->
<script src="//ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc2/angular-material.min.js"></script>
</body>
Note that the above sample references the 0.9.4 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 own testing purposes:
module.exports = function(config) {
var SRC = [
'src/myApp/**/*.js',
'test/myApp/**/*.spec.js'
];
var LIBS = [
'node_modules/angular/angular.js',
'node_modules/angular-animate/angular-animate.js',
'node_modules/angular-aria/angular-aria.js',
'node_modules/angular-material/angular-material.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/angular-material/angular-material-mocks.js'
];
config.set({
basePath: __dirname + '/..',
frameworks: ['jasmine'],
files: LIBS.concat(SRC),
port: 9876,
reporters: ['progress'],
colors: true,
autoWatch: false,
singleRun: true,
browsers: ['PhantomJS,Chrome']
});
};
1.1.0 (2016-08-14)
BREAKING CHANGE
The <md-select>
's, <md-option>
component now acts more like
the default <option>
attribute of a standard HTML <select>
by
treating empty value
and ng-value
attributes as a special
"reset" case that allows the input to return to the default state
(i.e. the floating label returns to the placeholder position).
If you use the value
or ng-value
attributes with no value
as follows and expect it to be a valid option,
<md-option value="">All options</md-option>
you will need to update your option to have a value like one of the following:
<md-option value="null">All options</md-option>
<md-option value="undefined">All options</md-option>
<md-option ng-value="''">All options</md-option>
Fixes #9718.
mdFontIcon
and mdFontSet
attributes (5c2a06f3, closes #4961)md-no-focus-style
attribute on md-button
is now a
class (.md-no-focus
)Closes #8691. Closes #8734 (d04dfc5d)
build:
docs:
refactor rtl-prop mixin to add less CSS (9a2c47de, closes #9217, #9218)
autocomplete:
backdrop:
bottomsheet: gridlist has spacing issue within a list item. (87aa4cf0, closes #8914)
build:
button: alignment between anchor buttons and normal buttons (af923e2f, closes #2440, #9183)
card:
checkbox:
chips:
colors:
content: Reduce iOS flicker when scrolling. (4e2722cd, closes #7078, #8680)
datepicker:
dialog:
gestures: detect touch action and provide polyfill. (d3cb371d, closes #7311, #7857)
icon:
input:
layout: improve responsive switches from layout column to row (93e2488a, closes #6528, #7327)
list:
mdAria: apply aria-label to buttons correctly (563b232d, closes #8789, #8793)
navbar: clear the selected nav-item if it is null (83b7e663, closes #8703)
menu:
menu-item: properly compile when used with ng-repeat (bfad5e4d, closes #8697, #8852, #8850)
menuBar: menuBar should query for uncompiled md-button directives. (3654d724, closes #6802, #8242, #8709)
panel:
progress-circular: wrapper not expanding layout (ff100188, closes #9031, #9033)
progress-linear: stop the CSS animations when the element is disabled (f3369ebb, closes #8764, #8776)
radio: ng-disabled on radio-group should notify child radio buttons. (9d6e3386, closes #8939, #8942)
release: version parser is fixed for rc.#
syntax (8568ceea)
ripple: fix ripple artifacts in Chrome v51 (15da974d, closes #8824)
select:
showHide: don't call getComputedStyle on comment node (f969ae52, closes #9243, #9244)
site: Fix navigation toggle to properly open on page refresh. (ec2726e0, closes #8841, #8842)
slider-rtl: added rtl support for slider (302f9dc3, closes #7434)
subheader:
switch: fix switch drag functionality. (911ec721, closes #4719, #2338, #6715)
tabs: properly detect text changes (121a39d5, closes #8667, #8803)
textarea:
theming: potentially generating invalid CSS (aea54376, closes #8953)
toast: apply theming correctly to custom toasts (995dc496, closes #8777, #8799)
toolbar:
tooltip:
virtual-repeat:
Thanks to the great contributors who helped with this release (after the rc.5 release):
<img alt="Aaron-Hartwig" src="https://avatars.githubusercontent.com/u/5115774?v=3&s=117" width="117"> |<img alt="AdriVanHoudt" src="https://avatars.githubusercontent.com/u/2361826?v=3&s=117" width="117"> |<img alt="areologist" src="https://avatars.githubusercontent.com/u/4918688?v=3&s=117" width="117"> |<img alt="barryvdh" src="https://avatars.githubusercontent.com/u/973269?v=3&s=117" width="117"> |<img alt="bradrich" src="https://avatars.githubusercontent.com/u/3429878?v=3&s=117" width="117"> |<img alt="chrisguerrero" src="https://avatars.githubusercontent.com/u/3720304?v=3&s=117" width="117"> | :---: |:---: |:---: |:---: |:---: |:---: | Aaron-Hartwig |AdriVanHoudt |areologist |barryvdh |bradrich |chrisguerrero |
<img alt="clshortfuse" src="https://avatars.githubusercontent.com/u/9271155?v=3&s=117" width="117"> |<img alt="crisbeto" src="https://avatars.githubusercontent.com/u/4450522?v=3&s=117" width="117"> |<img alt="cyx8808" src="https://avatars.githubusercontent.com/u/9927197?v=3&s=117" width="117"> |<img alt="danjarvis" src="https://avatars.githubusercontent.com/u/116640?v=3&s=117" width="117"> |<img alt="david-gang" src="https://avatars.githubusercontent.com/u/1292882?v=3&s=117" width="117"> |<img alt="davidenke" src="https://avatars.githubusercontent.com/u/275960?v=3&s=117" width="117"> | :---: |:---: |:---: |:---: |:---: |:---: | clshortfuse |crisbeto |cyx8808 |danjarvis |david-gang |davidenke |
<img alt="DavidFrahm" src="https://avatars.githubusercontent.com/u/889791?v=3&s=117" width="117"> |<img alt="DevVersion" src="https://avatars.githubusercontent.com/u/4987015?v=3&s=117" width="117"> |<img alt="dirkharbinson" src="https://avatars.githubusercontent.com/u/6855986?v=3&s=117" width="117"> |<img alt="EladBezalel" src="https://avatars.githubusercontent.com/u/6004537?v=3&s=117" width="117"> |<img alt="epelc" src="https://avatars.githubusercontent.com/u/5204642?v=3&s=117" width="117"> |<img alt="fhernandezn" src="https://avatars.githubusercontent.com/u/12898908?v=3&s=117" width="117"> | :---: |:---: |:---: |:---: |:---: |:---: | DavidFrahm |DevVersion |dirkharbinson |EladBezalel |epelc |fhernandezn |
<img alt="IPRIT" src="https://avatars.githubusercontent.com/u/1553519?v=3&s=117" width="117"> |<img alt="isaaclyman" src="https://avatars.githubusercontent.com/u/9139369?v=3&s=117" width="117"> |<img alt="ivoviz" src="https://avatars.githubusercontent.com/u/1143746?v=3&s=117" width="117"> |<img alt="jelbourn" src="https://avatars.githubusercontent.com/u/838736?v=3&s=117" width="117"> |<img alt="jsr6720" src="https://avatars.githubusercontent.com/u/502432?v=3&s=117" width="117"> |<img alt="keenondrums" src="https://avatars.githubusercontent.com/u/12794628?v=3&s=117" width="117"> | :---: |:---: |:---: |:---: |:---: |:---: | IPRIT |isaaclyman |ivoviz |jelbourn |jsr6720 |keenondrums |
<img alt="marcysutton" src="https://avatars.githubusercontent.com/u/1045233?v=3&s=117" width="117"> |<img alt="martineckardt" src="https://avatars.githubusercontent.com/u/10773395?v=3&s=117" width="117"> |<img alt="MattCatz" src="https://avatars.githubusercontent.com/u/14895427?v=3&s=117" width="117"> |<img alt="mkowalchuk" src="https://avatars.githubusercontent.com/u/1266924?v=3&s=117" width="117"> |<img alt="Nickproger" src="https://avatars.githubusercontent.com/u/1409078?v=3&s=117" width="117"> |<img alt="ofirmgr" src="https://avatars.githubusercontent.com/u/9841636?v=3&s=117" width="117"> | :---: |:---: |:---: |:---: |:---: |:---: | marcysutton |martineckardt |MattCatz |mkowalchuk |Nickproger |ofirmgr |
<img alt="oliversalzburg" src="https://avatars.githubusercontent.com/u/1658949?v=3&s=117" width="117"> |<img alt="robertmesserle" src="https://avatars.githubusercontent.com/u/571363?v=3&s=117" width="117"> |<img alt="soul-wish" src="https://avatars.githubusercontent.com/u/1968098?v=3&s=117" width="117"> |<img alt="SpikesCafe-google" src="https://avatars.githubusercontent.com/u/16656302?v=3&s=117" width="117"> |<img alt="ThomasBurleson" src="https://avatars.githubusercontent.com/u/210413?v=3&s=117" width="117"> |<img alt="timlevett" src="https://avatars.githubusercontent.com/u/3534544?v=3&s=117" width="117"> | :---: |:---: |:---: |:---: |:---: |:---: | oliversalzburg |robertmesserle |soul-wish |SpikesCafe-google |ThomasBurleson |timlevett |
<img alt="topherfangio" src="https://avatars.githubusercontent.com/u/54370?v=3&s=117" width="117"> |<img alt="x87" src="https://avatars.githubusercontent.com/u/5698288?v=3&s=117" width="117"> | :---: |:---: | topherfangio |x87 |
<a name"1.1.0-rc.5"></a>
FAQs
**[Support for legacy AngularJS ended on January 1st, 2022](https://goo.gle/angularjs-end-of-life). [See `@angular/core` for the actively supported Angular](https://npmjs.com/@angular/core).**
The npm package angular-material receives a total of 35,004 weekly downloads. As such, angular-material popularity was classified as popular.
We found that angular-material demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.