Closed seanmurphy1661 closed 8 months ago
Like this?
let events = []
relay.subscribe(_, _, {
onevent(event) {
events.push(event)
}
})
V similar to what I had to do. I could not access a component property in the code block, but I can access a var local to the calling function. set the property to the local var, done. angular can make the simplest thing difficult.
Anyone get the relay example to work in angular? I'm getting tons events. I'm just having a mental block on getting them out of the onevent function to manipulate.