Code Monkey home page Code Monkey logo

angular-pubsub's People

Contributors

georapbox avatar karlos1337 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-pubsub's Issues

Can you give an example about that

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?

subscriber callback being called n-times after publish

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!

Please make angular-PubSub installable by npm

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:

  • There are no releases of this package, so one cannot (easily) control which version of angular-PubSub will end in one's application. In a worst case a new commit may break the application. In other words one cannot use the "latest stable" version of angular-PubSub, because there are no releases for this project yet.
  • This also means constant Internet access for our build server (to always fetch this package from git), which is also not really good.
    Usually I like to use concrete package versions for all the packages, e.g.
    "angular": "1.5.8",
    etc. This has the benefit that
  • package versions used by the application do not change uncontrollably (which would happen with the ^ notation, e.g. "angular": "^1.5.8",), so one can decide when to update packages by checking the outdated packages (by 'npm outdated'), and then updating the affected version numbers in package.json.
  • packages can be locally cached by e.g. npm_lazy

So please, please I ask/beg you to:

  • create an initial release of this project now and further releases when appropriate
  • make sure it is npm installable (e.g. if I google search 'georapbox site:www.npmjs.org' I get nothing).

possible to Jasmine test angular-PubSub

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.