Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Router templates and Components

$
0
0

@Ben_Glancy wrote:

Hi,

A component has didInsertElement, why doesn't the router template have something similar? I am trying to know when the route has rendered it's template HBS file. I am a little tired of putting in a component into a HBS just as boiler plate. Why are router templates even any different to component.js? Shouldn't a router just render a component?

If I had a component that is an overlay that I wanted to resize/reposition after it appears when transtioning into the route that makes it appear (with javascript,.. not CSS) how would I do this?

Yes I could again put in a component, but really why should I have to?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles