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

Customizing tagName/attributes of top-level template

$
0
0

@ofridagan wrote:

Hello,

I’m migrating an Ember app to 2.7, and hence need to get rid of uses of Ember.View. I have a bunch of places in the app where I use the Route’s render method to render some template into an outlet. The rendered template typically also have a view associated with it, which is where I customize it’s tagName, class, etc.

Now, if I can’t use Views any more, what are my options?

  1. If I try to introduce a component, i.e just using my template to render some other component - then I get a wrapper ‘div’ which I can’t control, right?
  2. I tried to just change my view.js file to be a component class instead of view… as far as I can tell - it works. But it really doesn’t feel right…

So what is the correct way of doing this now?

In other words, how do I customize a template’s wrapper tag without views?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles