Coder Social home page Coder Social logo

angular-pubsub's Introduction

Hi ๐Ÿ‘‹, I'm Gilles

I'm a front-end developer, since 2013 ๐Ÿ’ป

I turn music ๐ŸŽง and caffeine โ˜• into code ๐Ÿ‘จโ€๐Ÿ’ป


  • ๐Ÿ˜๏ธ I live and work remotely from Lyon, France ๐Ÿฆ๐Ÿ‡ซ๐Ÿ‡ท

  • โš•๏ธ I'm now working at @Kozea to help pharmacists to take care of us!

    • We use React, Redux, Next ...and soon Vue ๐Ÿ’Ÿ
  • ๐Ÿ“ฑ Previously, I was working as @genygilles on Genymotion SaaS

    • It is built with โค๏ธ ...and a lot of time โŒš
    • It uses Vue, Vuetify, VueX and Cypress
  • ๐Ÿ‘จโ€๐Ÿฆณ I used to work on Geo-log 4

    • It was built with AngularJS, Bootstrap, Karma and Protractor
  • ๐ŸŒฑ Iโ€™m currently learning to be a father ๐Ÿ‘ถ, and back-end ๐Ÿ”™

  • ๐Ÿ‘‰ Check out my pure HTML/CSS resume!

  • โšก Fun fact: I am an engineer... in Chemistry! ๐Ÿ‘จโ€๐Ÿ”ฌ

  • โœŒ๏ธ Fun fact 2: Yes, I do love emojis ๐Ÿ˜ฌ, my favorite one is ๐Ÿฅบ

  • โ˜˜๏ธ Fun fact 3: 3 jobs, 2 with @gentooboontoo ๐Ÿค


Take care ๐Ÿ˜—


HTML5 CSS3 JavaScript Vue.js GraphQL React Redux NextJS TypeScript Git Linux

angular-pubsub's People

Contributors

glepretre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-pubsub's Issues

Getting Maximum call stack size exceeded

My APP is heavily using this PubSub and now I am getting this error. I had to use $scope.$evalAsync to resolve this issue, but whats the problem next is, the scopes values are not updated immediately, but the messages are send, I am having problems to do specific action that is depended on the scope value.

I am not unsubscribing any message, because the directive should be always listening for that message.

Almost all the communication between the directives and main ctrl are done by this library ;).

Any suggestions?

Single subscribe to message

Maybe upgrade the library, with a singlesubscribe, so that the subscribetion to message is automatically removed after the callback is called.

unit tests - parent, child communication

I have a directive that publishes a message. In the application it works great, but when creating a unit test, unit test doesn't get the message.

directive:

angularPubSub.subscribe('change-child', function () {
     angularPubSub.publish('child-changed');
});

unit test:

 beforeEach(inject(function ($compile, $rootScope, AngularPubSub) {
     scope = $rootScope.$new();
      compile = $compile;
      angularPubSub = AngularPubSub;
  }));

it('test ntNavigator events', inject(function (NO_RESULT) {
       element = compile(angular.element('<div my-dir></div>'))(scope);
       scope.$digest();

      angularPubSub.publish('change-child');

      angularPubSub.subscribe('child-changed', function () {
              console.log('dadadada')
      });
 }));

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.