Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

update(dependencies): add support for AngularJS 1.7.0 #43

Merged
merged 1 commit into from
Jun 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 32 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
This repository is used only for AngularJS Material v1.x library deployments and localized installs using `npm` and `bower`. The actual component source-code for this library is in the
This repository is used only for AngularJS Material v1.x library deployments and localized installs using
`npm` and `bower`. The actual component source-code for this library is in the
[main AngularJS Material repository](https://github.com/angular/material).

> Please file issues and pull requests against that `angular/material` repository only. Do not file issues here on the deployment repository.
> Please file issues and pull requests against that `angular/material` repository only. Do not file issues
here on the deployment repository.

## Layouts and SCSS

Included in this repository are the:

* **[SCSS files](https://github.com/angular/bower-material/tree/master/modules/scss)** which are used to build the *.css files
* **[Layout files](https://github.com/angular/bower-material/tree/master/modules/layouts)** which are used with the AngularJS Material (Flexbox) Layout API.
* **[SCSS files](https://github.com/angular/bower-material/tree/master/modules/scss)** which are used to
build the *.css files
* **[Layout files](https://github.com/angular/bower-material/tree/master/modules/layouts)** which are used
with the AngularJS Material (Flexbox) Layout API.

> 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.
> 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.

## Installing AngularJS Material

You can install this package locally either with `npm`, `jspm`, or `bower` (deprecated).

> Please note that AngularJS Material requires **AngularJS 1.4.x** to **AngularJS 1.6.x**.
> Please note that AngularJS Material requires **AngularJS 1.4.x** to **AngularJS 1.7.0**.

### npm

Expand All @@ -36,8 +41,8 @@ npm install http://github.com/angular/bower-material#master --save
# "angular-material": "git+ssh://git@github.com/angular/bower-material.git#master"


# To install a v1.1.6 version
npm install http://github.com/angular/bower-material/tarball/v1.1.6 --save
# To install a v1.1.9 version
npm install http://github.com/angular/bower-material/tarball/v1.1.9 --save

# To view all installed package
npm list;
Expand All @@ -56,7 +61,8 @@ jspm install angular-material=github:angular/bower-material@master
jspm inspect
```

Now you can use `require('angular-material')` when installing with **npm** or **jspm**, or when using Browserify or Webpack.
Now you can use `require('angular-material')` when installing with **npm** or **jspm**, or when using
Browserify or Webpack.

### bower

Expand Down Expand Up @@ -145,36 +151,40 @@ This is especially useful when using online tools such as CodePen, Plunker, or j

```html
<head>
<!-- Angular Material CSS now available via Google CDN; version 1.1.6 used here -->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.6/angular-material.min.css">
<!-- Angular Material CSS now available via Google CDN; version 1.1.9 used here -->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.9/angular-material.min.css">
</head>
<body>

<!-- Angular Material Dependencies -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.7/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.7/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.7/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.7/angular-messages.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.0/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.0/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.0/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.0/angular-messages.min.js"></script>

<!-- Angular Material Javascript now available via Google CDN; version 1.1.6 used here -->
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.6/angular-material.min.js"></script>
<!-- Angular Material Javascript now available via Google CDN; version 1.1.9 used here -->
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.9/angular-material.min.js"></script>
</body>
```

> Note that the above sample references the 1.1.6 CDN release. Your version will change
> Note that the above sample references the 1.1.9 CDN release. Your version will change
based on the latest stable release version.

## Unit Testing with Angular Material

<br/>
If you are using Angular Material and will be using Jasmine to test your own custom application code, you will need to also load two (2) Angular mock files:
If you are using Angular Material and will be using Jasmine to test your own custom application code, you will
need to also load two (2) Angular mock files:

* Angular Mocks - **angular-mocks.js** from `/node_modules/angular-mocks/angular-mocks.js`
* Angular Material Mocks - **angular-material-mocks.js** from `/node_modules/angular-material/angular-material-mocks.js`
* Angular Mocks
* **angular-mocks.js** from `/node_modules/angular-mocks/angular-mocks.js`
* Angular Material Mocks
* **angular-material-mocks.js** from `/node_modules/angular-material/angular-material-mocks.js`

<br/>

Shown below is a karma-configuration file (`karma.conf.js`) sample that may be a useful template for your own testing purposes:<br/><br/>
Shown below is a karma-configuration file (`karma.conf.js`) sample that may be a useful template for your own
testing purposes:<br/><br/>

```js
module.exports = function(config) {
Expand Down
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"license": "MIT",
"ignore": [],
"dependencies": {
"angular": "^1.4.8",
"angular-animate": "^1.4.8",
"angular-aria": "^1.4.8",
"angular-messages": "^1.4.8"
"angular": "^1.6.0",
"angular-animate": "^1.6.0",
"angular-aria": "^1.6.0",
"angular-messages": "^1.6.0"
},
"main": [
"angular-material.js",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"format": "cjs",
"registry": "github",
"peerDependencies": {
"angular": ">=1.4 <1.7",
"angular-animate": ">=1.4 <1.7",
"angular-aria": ">=1.4 <1.7",
"angular-messages": ">=1.4 <1.7"
"angular": ">=1.4 <=1.7.0",
"angular-animate": ">=1.4 <=1.7.0",
"angular-aria": ">=1.4 <=1.7.0",
"angular-messages": ">=1.4 <=1.7.0"
},
"jspm": {
"dependencies": {
"angular": "github:angular/bower-angular@^1.5.3",
"angular-animate": "github:angular/bower-angular-animate@^1.5.3",
"angular-aria": "github:angular/bower-angular-aria@^1.5.3",
"angular-messages": "github:angular/bower-angular-messages@^1.5.3",
"angular": "github:angular/bower-angular@^1.6.0",
"angular-animate": "github:angular/bower-angular-animate@^1.6.0",
"angular-aria": "github:angular/bower-angular-aria@^1.6.0",
"angular-messages": "github:angular/bower-angular-messages@^1.6.0",
"css": "systemjs/plugin-css@^0.1.9"
},
"shim": {
Expand Down