Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
aurelia-rxjs
Advanced tools
An Aurelia plugin that makes it possible bind to Rx Observables and Rx Subjects or use them as Binding Signals.
An Aurelia plugin that allows you to bind to Rx Observables and Rx Subjects or use them as Binding Signals.
aurelia-binding-functions
via jspm
with following commandjspm install npm:aurelia-rxjs npm:aurelia-binding-functions
configure
function in the main.js
file of your src
folder export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
+ aurelia.use.plugin('aurelia-binding-functions');
+ aurelia.use.plugin('aurelia-rxjs');
aurelia.start().then(a => a.setRoot());
}
aurelia-rxjs
should be visible automatically.View:
<input value.bind="@rx(twoWayBinding)" autofocus>
<h2>${@rx(counter)}</h2>
<button click.delegate="@rx(onClick)">recompute random</button>
<h2>${random & observableSignal: onClick}</h2>
ViewModel:
import {Observable, Subject, ReplaySubject} from 'rxjs/Rx'
import {computedFrom} from 'aurelia-framework'
export class ObservableExample {
counter = Observable.interval(1000)
twoWayBinding = new ReplaySubject(1)
onClick = new Subject()
constructor() {
this.onClick.subscribe(next => console.log('clicked!'))
this.twoWayBinding.subscribe(next => console.log(`new value: ${next}`))
}
// in this example we want to demonstrate
// regeneration of the value based on the observableSignal
// hence we fool Aurelia into thinking it's computed from 'nothing'
@computedFrom('nothing')
get random() {
return Math.random()
}
}
This library isn't used by Aurelia. It is an optional plugin.
This library can be used in the browser as well as on the server.
To build the code, follow these steps.
npm install
npm install -g gulp
gulp build
You will find the compiled code in the dist
folder, available in three module formats: AMD, CommonJS and ES6.
See gulpfile.js
for other tasks related to generating the docs and linting.
To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:
npm install -g karma-cli
npm install -g jspm
jspm install
karma start
FAQs
An Aurelia plugin that makes it possible bind to Rx Observables and Rx Subjects or use them as Binding Signals.
The npm package aurelia-rxjs receives a total of 0 weekly downloads. As such, aurelia-rxjs popularity was classified as not popular.
We found that aurelia-rxjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.