DanJSum

u/DanJSum


r/vuejs•

I'm working on converting one of my Vue apps to use the composition API. I'm getting pretty proficient with it at this point, but there is one aspect I have yet to figure out - custom events. I can emit them by using the parent property on the context parameter to setup, but I can't figure out how to get the component instance. It's not part of the context passed to setup() (at least in the docs), and it's not a parameter to any of the on* lifecycle hook functions.

The actual code I'm trying to convert has the form this.$on('myevent', someHandler). $on isn't defined for this in setup (or in data), and I am wrapping this in a createComponent call, as it's using TypeScri

610

r/Angular2•

TL;DR - skip to the last paragraph

I am in the process of learning Angular 2 (having no prior Angular experience, but a lot of other web dev experience). I've done the quick start and the Tour of Heroes, and I'm now trying to convert an existing app (from ASP MVC 4). I've gotten the structure put together, and am excited about how easy this framework makes development.

The challenge I'm facing right now has to do with the navigation menu at the top. I'm implementing something similar to the second example under the "Menu" heading at this Semantic UI example, but the drop down doesn't drop down. All of the navigation stuff is in app.comp

10

You've reached the end of this feed.