rx.angular.js
- Reactive Extensions Bindings for AngularJS
This library serves as a bridge between the Reactive Extensions for JavaScript (RxJS) 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:
angular ;
And with your HTML markup you can use it like this:
Reactive Angular observedChange {{observedChange}} newValue: {{newValue}} oldValue: {{oldValue}}
Another example is where we can create an Observable sequence from such things ng-click expressions where we can search Wikipedia:
angular ;
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.
Search {{result}}
This only scratches the surface of what is possible when you combine the two libraries together.
Community Examples
There are a growing number of community samples using RxJS and Angular.js, including:
Dive In!
Please check out:
- Our Code of Conduct
- The full documentation
- Our many great examples
- Our design guidelines
- Our contribution guidelines
- Our complete Unit Tests
Getting Started
There are a number of ways to get started with RxJS.
Download the Source
$ git clone https://github.com/Reactive-Extensions/rx.angular.js.git$ cd ./rx.angular.js
NPM
Installing withnpm install rx-angularnpm install -g rx-angular
Bower
Installing withbower install angular-rx
Jam
Installing withjam install rx-angular
NuGet
Installing All of RxJS viaPM> Install-Package RxJS-Bridges-Angular
License
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.