Quantcast
Viewing all articles
Browse latest Browse all 4838

Ember Route - Access to DOM

@CarlosV89 wrote:

Hey guys im fairly new to Ember and I found a plugin that makes an action inside a route usable from the template. I was using the action in the route to modify the DOM through a bootstrap component. ie $('.nav-tabs li.tab:not(.active)').tab('show'); but was told that the Route should not have access to the DOM, but they werent able to tell me why. Is there any particular reason why the route should not be able to access the DOM? The whole idea behind it is to not use a Controller and not use a component for something so basic, which is what I think will end up happening

Regards, Carlos V

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles