Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@cerebral/vue
Advanced tools
Vue.js view for Cerebral.
npm install @cerebral/vue vue
import Vue from 'vue/dist/vue'
import {Controller} from 'cerebral'
import {Container, connect} from '@cerebral/vue'
const controller = Controller({
state: {
foo: 'bar'
},
signals: {
clicked: []
}
})
var app = new Vue({
el: '#app',
components: {
container: Container(controller)
}
})
Note! The HTML of the root element must use the container:
<div id="app">
<container>
<my-component></my-component>
</container>
</div>
MyComponent.js
import {connect} from '@cerebral/vue'
import {state, signal} from 'cerebral/tags'
export default connect({
foo: state`foo`,
click: signal`clicked`
}, {
template: '<div v-on:click="click()">{{foo}}</div>'
})
main.js
import Vue from 'vue/dist/vue'
import {Controller} from 'cerebral'
import {Container, connect} from '@cerebral/vue'
import MyComponent from './MyComponent'
const controller = Controller({
state: {
foo: 'bar'
},
signals: {
clicked: []
}
})
var app = new Vue({
el: '#app',
components: {
container: Container(controller),
'my-component': MyComponent
}
})
FAQs
Vue.js view for Cerebral
The npm package @cerebral/vue receives a total of 28 weekly downloads. As such, @cerebral/vue popularity was classified as not popular.
We found that @cerebral/vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.