georapbox / angular-pubsub Goto Github PK
View Code? Open in Web Editor NEWAngular 1.x implementation of the Publish–Subscribe pattern.
License: MIT License
Angular 1.x implementation of the Publish–Subscribe pattern.
License: MIT License
I see the purpose of this library. But please you give an example how to use this lib? Especially, when we will release/unsubscribe a topic?
For each subscriber I add, I get back that many hits to each callback. For example, if I have 3 subscribing directives, each directives callback gets hit 3 times, for a single publish. Any idea how to fix this? The tokens are unique. So if one of my directives had a controller called historyCtrl, and I use the console statements from the readme, the tokens are unique: 0, 3, 6
I was really hoping each subscriber would just be called once. Thanks!
Hi,
Maybe this issue is not really about npm support but the lack of releases for angular-PubSub. Please note that I am very new to both angular and npm, so please forgive and correct my errors - if any - in the following text.
In our angular 1 application we use the npm package manager.
To install angular-PubSub with npm one needs to add this to package.json (under the "dependencies" section):
"angular-PubSub": "https://github.com/georapbox/angular-PubSub",
This is really problematic in the following ways:
So please, please I ask/beg you to:
Would it be possible to get an example Jasmine test that uses angular-PubSub? One of our appliations uses angular-PubSub, but we haven't been able to test our subscribes (pubsub) in Jasmine. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.