Question about new paradigm ( Model, View, Action, Controller ) to (Model, Action, Component)

Hi, i just update my project to Ember 1.13.1. I’ve identify the deprecated things, and i corrected them. One of this things was the transition of Ember Views to Component. It’s work like a charmes but i tell myself a question. In my project, i’ve got lot of JQuery plugin or others javascript loaded. Before 1.12, this was handle by the Views, Now it’s handled by my components. Each component must managed it’s own script.

It’s the right way to do this? I means, now i have lot of component, and most of the part of my template file are composed of component. My components are not especially well generic and reusable but it’s the only way i found to handle all of script initialisation with the depreciation of views.

Thx in advance.

What do you mean by this “My components are not especially well generic and reusable but it’s the only way i found to handle all of script initialisation with the depreciation of views”?

I means, my component are tight to the application, Not all but for some, i can’t reuse them on another application. For example i integrates style class of my css framework in it. And also i will use lot of them only one.

So i just want to know if in this case components is the right way or if there is another method in Ember.

Yes. They should be reusable inside your application first. To be reusable between other apps they are written taking that into account and sharing as ember-cli addons, so don’t worry, your way of doing is absolutely right way to do things right now.

Ok thx for you answer.