Gathering detailed insights and metrics for rx-lite-angular-compat
Gathering detailed insights and metrics for rx-lite-angular-compat
Gathering detailed insights and metrics for rx-lite-angular-compat
Gathering detailed insights and metrics for rx-lite-angular-compat
npm install rx-lite-angular-compat
Typescript
Module System
Node Version
NPM Version
JavaScript (99.07%)
HTML (0.93%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
828 Stars
164 Commits
89 Forks
37 Watchers
1 Branches
28 Contributors
Updated on May 16, 2025
Latest Version
1.1.3
Package Id
rx-lite-angular-compat@1.1.3
Size
11.22 kB
NPM Version
3.3.12
Node Version
5.4.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
rx.angular.lite.compat.js
- Reactive Extensions Bindings for AngularJS Lite Compat for older browsers.This library serves as a bridge between the Reactive Extensions for JavaScript (RxJS) Lite Compat library for older browsers and AngularJS.
With this library, you will be able to do such things as easily watch values as they change, as observable sequences such as:
1angular.module('example', ['rx']) 2 .controller('AppCtrl', function($scope, observeOnScope) { 3 4 // Listen for changes on the name 5 observeOnScope($scope, 'name').subscribe(function(change) { 6 $scope.observedChange = change; 7 $scope.newValue = change.newValue; 8 $scope.oldValue = change.oldValue; 9 }); 10 });
And with your HTML markup you can use it like this:
1<div class="container" ng-app="example" ng-controller="AppCtrl"> 2 <h2>Reactive Angular</h2> 3 <ul class="list-unstyled"> 4 <li>observedChange {{observedChange}}</li> 5 <li>newValue: {{newValue}</li> 6 <li>oldValue: {{oldValue}}</li> 7 </ul> 8 9 <input type="text" ng-model="name" /> 10</div>
Another example is where we can create an Observable sequence from such things ng-click expressions where we can search Wikipedia:
1angular.module('example', ['rx']) 2 .controller('AppCtrl', function($scope, $http, rx) { 3 4 function searchWikipedia (term) { 5 return rx.Observable 6 .fromPromise($http({ 7 url: "http://en.wikipedia.org/w/api.php?&callback=JSON_CALLBACK", 8 method: "jsonp", 9 params: { 10 action: "opensearch", 11 search: term, 12 format: "json" 13 } 14 })) 15 .map(function(response){ return response.data[1]; }); 16 } 17 18 $scope.search = ''; 19 $scope.results = []; 20 21 /* 22 Creates a "click" function which is an observable sequence instead of just a function. 23 */ 24 $scope.$createObservableFunction('click') 25 .map(function () { return $scope.search; }) 26 .flatMapLatest(searchWikipedia) 27 .subscribe(function(results) { 28 $scope.results = results; 29 }); 30 });
And the HTML markup you can simply just use a ng-click directive much as you have before, but now it is an Observable sequence.
1<div class="container" ng-app="example" ng-controller="AppCtrl"> 2 3 <input type="text" ng-model="search"> 4 <button ng-click="click()">Search</button> 5 6 <ul> 7 <li ng-repeat="result in results">{{result}}</li> 8 </ul> 9 10</div>
This only scratches the surface of what is possible when you combine the two libraries together.
There are a growing number of community samples using RxJS and Angular.js, including:
Please check out:
There are a number of ways to get started with RxJS.
1$ git clone https://github.com/Reactive-Extensions/rx.angular.js.git 2$ cd rx.angular.js/modules/rx.lite.angular.compat
1npm install rx-angular-lite-compat 2npm install -g rx-angular-lite-compat
Copyright (c) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 9/28 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is archived
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More