Manipulation of DOM on stimulus js
npm install -s ...
import {Controller} from "stimulus"
import Domulus from 'dumulus'
export default class extends Controller {
static targets = ["source"];
connect() {
Domulus.connect(this);
}
disconnect() {
Domulus.disconnect(this);
}
<div data-controller="example">
<input data-target="example.source" type="text" value="1">
<div data-show="example.source != 1">
<h1>Show text only value 1 or true </h1>
</div>
</div>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
The MIT License (MIT). Please see License File for more information.