Snippets are found below.
→ Denotes the TAB
key.
Snippet→ | Output |
---|---|
nfor→ |
Nue For Loop |
nif→ |
Nue If Statement |
nscript→ |
Nue Script with all lifecycle methods |
nattr→ |
Rendering attributes with :attr |
ncomp→ |
Nue Component |
:for="(item, index) in array"
<div :if="condition"></div>
<div :else-if="condition"></div>
<div :else></div>
<script>
constructor(data) {
}
mounted() {
}
updated() {
}
unmounted() {
}
</script>
<div :attr="data">
<script>
data = {
}
</script>
</div>
<div @name="comp">
</div>