Skip to content

Commit

Permalink
Merge pull request mlisook#5 from mlisook/bumpto20
Browse files Browse the repository at this point in the history
add version info to readme
  • Loading branch information
mlisook authored Aug 31, 2017
2 parents 72e6b24 + 72d9c23 commit 658e4ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ the flow, viewport changes, etc. This element detects the size changes without

This custom control uses code from [procurios/ResizeSensor](https://github.com/procurios/ResizeSensor) modified to work with Polymer in both Shadow and Shady DOM.

## Install
For Polymer 2.0 projects, install the 2.0 native, class based version:

`bower install --save resize-aware`

For Polymer 1.x projects, install the hybrid version:

`bower install --save resize-aware#^1.9.1`

## How to Use
```html
<link rel="import" href="../../bower_components/resize-aware.html" />
Expand Down
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "resize-aware",
"description": "Container element that is aware of and notifies of changes to its size",
"main": "resize-aware.html",
"version": "2.0.0",
"keywords": [
"polymer",
"container",
Expand All @@ -13,7 +14,7 @@
"web-components"
],
"dependencies": {
"polymer": "Polymer/polymer#^2.0.0"
"polymer": "Polymer/polymer#^2.0.2"
},
"demo": "demo/index.html",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
</head>
<body>
<div class="vertical-section-container centered">
<h3>Basic resize-aware demo</h3>
<h3>Basic resize-aware Demo</h3>
<demo-snippet>
<template>
Expand Down

0 comments on commit 658e4ad

Please sign in to comment.