Node JS Tutorial for Beginners #8 - The Node Event Emitter

Node JS Tutorial for Beginners #8 - The Node Event Emitter

Yo gang, in this Node JS tutorial, I'll be introducing you to the event emitter in the Node core. The event emitter allows us to wire up custom events to our own objects and then emit those events at a later point in time. ----- COURSE LINKS: + Repo - https://github.com/iamshaunjp/node-js-playlist + Atom editor - https://atom.io/ --------------------------------------------------------------------------------------------- You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage... SUBSCRIBE TO CHANNEL - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1 ========== JavaScript for Beginners Playlist ========== https://www.youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET ============ CSS for Beginners Playlist ============= https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT ============== The Net Ninja ===================== For more front-end development tutorials & to black-belt your coding skills, head over to - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk ================== Social Links ================== Twitter - @TheNetNinja - https://twitter.com/thenetninjauk

NODE JS, EVENT EMITTER

NODE JS, EVENT EMITTER

Build Your Own EventEmitter

Build Your Own EventEmitter

Want more on React/Redux? Check out https://www.udemy.com/react-redux/?couponCode=4YTTTT The 'Eventing' pattern in Javascript is one of the most established design mechanisms of the language. But how does eventing work behind the scenes? Learn how to build your own event emitter in this short video. Interested in weekly videos on React/Javascript? Check out http://www.RallyCoding.com Also check out this awesome tutorial course on React and Redux: https://www.udemy.com/react-redux/?couponCode=4YTTTT

Events and Event Emitter in Node.js

Events and Event Emitter in Node.js

🔥Get the COMPLETE course: http://bit.ly/2rYZPdc Subscribe for more videos: https://www.youtube.com/channel/UCWv7vMbMWH4-V0ZXdmDpPBA?sub_confirmation=1 Want to learn more from me? Check out my blog and courses: http://programmingwithmosh.com https://www.facebook.com/programmingwithmosh/ https://twitter.com/moshhamedani

Node.js Tutorial for Beginners 10 - Node.js Events and EventEmitter

Node.js Tutorial for Beginners 10 - Node.js Events and EventEmitter

Much of the Node.js core API is built around an idiomatic asynchronous event-driven architecture in which certain kinds of objects (called "emitters") periodically emit named events that cause Function objects ("listeners") to be called. When the EventEmitter object emits an event, all of the functions attached to that specific event are called synchronously. Any values returned by the called listeners are ignored and will be discarded. ----------------------Follow--------------------------------------------- My Website - http://www.codebind.com My Blog - https://goo.gl/Nd2pFn My Facebook Page - https://goo.gl/eLp2cQ Google+ - https://goo.gl/lvC5FX Twitter - https://twitter.com/ProgrammingKnow Pinterest - https://goo.gl/kCInUp Text Case Converter - https://goo.gl/pVpcwL -------------------------Stuff I use to make videos ------------------- Stuff I use to make videos Windows notebook – http://amzn.to/2zcXPyF Apple MacBook Pro – http://amzn.to/2BTJBZ7 Ubuntu notebook - https://amzn.to/2GE4giY Desktop - http://amzn.to/2zct252 Microphone – http://amzn.to/2zcYbW1 notebook mouse – http://amzn.to/2BVs4Q3 ------------------Facebook Links ---------------------------------------- http://fb.me/ProgrammingKnowledgeLearning/ http://fb.me/AndroidTutorialsForBeginners http://fb.me/Programmingknowledge http://fb.me/CppProgrammingLanguage http://fb.me/JavaTutorialsAndCode http://fb.me/SQLiteTutorial http://fb.me/UbuntuLinuxTutorials http://fb.me/EasyOnlineConverter -------------------Online Courses to learn---------------------------- Java - https://bit.ly/2H6wqXk C++ - https://bit.ly/2q8VWl1 AngularJS - https://bit.ly/2qebsLu Python - https://bit.ly/2Eq0VSt C- https://bit.ly/2HfZ6L8 Android - https://bit.ly/2qaRSAS Linux - https://bit.ly/2IwOuqz AWS Certified Solutions Architect - https://bit.ly/2JrGoAF Modern React with Redux - https://bit.ly/2H6wDtA MySQL - https://bit.ly/2qcF63Z

RxJS SUBJECT (~EventEmitter) | RxJS TUTORIAL

RxJS SUBJECT (~EventEmitter) | RxJS TUTORIAL

RxJS Observables are too passive for you? Let's have a look at Subjects! Code: https://jsfiddle.net/zjprsm16/ Want to become a frontend developer? Consider diving into some of my courses on Udemy: Ionic 2 - The Practical Guide for only $15: https://www.udemy.com/ionic-2-the-practical-guide-to-building-ios-android-apps/?couponCode=GETINTOIT Angular - The Complete Guide for only $15, too: https://www.udemy.com/the-complete-guide-to-angular-2/?couponCode=YOUTUBE_2 Vue.js 2 - The Complete Guide for only $15: https://www.udemy.com/vuejs-2-the-complete-guide/?couponCode=YOUTUBE_VUE Want to get some 1-on-1 coaching with experienced developers? Have a look at Savvy: https://www.savvy.is/?ref=9fee2b (Discount Code 9fee2b) You can follow me on Twitter (@maxedapps), Facebook (https://www.facebook.com/academindchannel/) or visit our Website (https://www.academind.com). See you in the videos!

Extending the Event Emitter

Extending the Event Emitter

🔥Get the COMPLETE course: http://bit.ly/2rYZPdc Subscribe for more videos: https://www.youtube.com/channel/UCWv7vMbMWH4-V0ZXdmDpPBA?sub_confirmation=1 Want to learn more from me? Check out my blog and courses: http://programmingwithmosh.com https://www.facebook.com/programmingwithmosh/ https://twitter.com/moshhamedani

Angular 2 - Output and Custom Events with EventEmitter

Angular 2 - Output and Custom Events with EventEmitter

Angular 2+ Essential Training: https://goo.gl/yjQPIu Repo: https://goo.gl/2Rrt2g Outputs are used in order to create custom events that sends data from your component to the outside world. Repo is here: https://goo.gl/2Rrt2g There’s a few steps involved in creating our Output Event and then using it. So what we want to do is send some information from our nested component to our parent component and then display that information in the parent component. So the first thing that we do is create a property assigned to an Output similar to how we created our Input property. The difference is we’re using an EventEmitter. Lets dissect this a bit. An EventEmitter is an object that listens for something to happen and then publishes an event when triggered. This is what’s known as the Observer pattern. Say we create a new EventEmitter named notify in our child component. Now, our child component has become a publisher and is going to be used to send data up to its parent using the Emit method. The parent component now becomes a subscriber to the notify output. This means that when notify has emitted this ‘send message’ string it will be automatically picked up by the parent and can be used in a method defined in the parent component. The process of setting up an Output to send events from child to parent works like this: First, we open up our child component file and we import Output and EventEmitter from angular core. Then we define an Output with a decorator followed by a property name. In this case, we’ll use the name notify. Notify is of Type EventEmitter. So remember EventEmitter is an object and since its an object it also has a type and that’s what these greater than less than symbols known as a Generic are doing, its setting this EventEmitter to a type of String. So generic is a feature of Typescript that simply defines the Type of an instance such as an object instance or function instance. So we set notify as type EventEmitter and set it equal to a new instance of EventEmitter that is of type string and then we invoke our EventEmitter using parenthesis. We’re using a type of string here because we’re going to be emitting a value that is a string. But EventEmitters can be of type any. They can be of type String, Number, Boolean or Interface for example. Now we need to setup a method that does something with our Output property. So in our child component HTML, when a user clicks a button, we’re going to trigger the onClick method. The onClick method will in turn use our notify property and emit a string of ‘Message from child’. Now, there’s 2 steps we need to take in our parent in order to display our child’s message. The first is in our parent HTML file. So inside the child selector, we need to wrap our notify property in parenthesis. This is our event watcher that gets triggered anytime someone clicks this button in our child. We then set this equal to a method we’ll create inside of the parent. This dollar sign event parameter stores whatever has been emitted from the child, in this case its going to store the ‘Message from child’ string. Now in our parent we create the onNotifyClicked method. Then inside here we’re just going to set the message we received equal to a property called showMessage. Then we can display our message using interpolation inside our parent HTML file. So, when somebody clicks this button in our child component, we’ll see the string ‘Message from child’ inside of this showMessage property inside of our parent. Now lets walk through this process inside of our application.

JavaScript - custom events, why and how

JavaScript - custom events, why and how

I had one task recently, to append logic of some JS functionality for certain projects without breaking JS file, so I've created JsEvents to handle this with care. Watch the video and I hope it will help you.

Node JS EventEmitter() Intro

Node JS EventEmitter() Intro

Introduction to video series about NodeJS EventEmitter class

Top Videa -  loading... Změnit krajinu
Načíst dalších 10 videí
 
 
Sorry, You can't play this video
00:00/00:00
  •  
  •  
  •  
  •  
  •  
  •  
  •  
CLOSE
CLOSE
CLOSE