https://github.com/trakkasure/dom-if-else
Modification of dom-if to be if/else compliant.
https://github.com/trakkasure/dom-if-else
Last synced: 3 months ago
JSON representation
Modification of dom-if to be if/else compliant.
- Host: GitHub
- URL: https://github.com/trakkasure/dom-if-else
- Owner: Trakkasure
- License: mit
- Created: 2015-08-18T19:20:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-20T19:52:57.000Z (almost 10 years ago)
- Last Synced: 2025-04-12T21:48:58.975Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 195 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dom-if-else
Modification of dom-if to be if/else compliant.This is a Polymer Element providing the missing ELSE portion for the "DOM-IF" template by way of an alterative to DOM-IF.
## Build Status [](https://travis-ci.org/Trakkasure/dom-if-else) [](https://coveralls.io/github/Trakkasure/dom-if-else?branch=master)
[](https://saucelabs.com/u/dom-if-else)## Install
```bash
bower install --save dom-if-else
```## Example
```html
Toggle
1
2
3
Stuff
4
e1
e2
More stuff
e3
function clicked() {
var t=document.querySelector('#domIf');
t.set('if',!t.if);
}
```