I’m developing an application using ember.js and a rest API written with spring MVC. I have to create a dashboard with several widget on it. Every widget as its own behavior and will call different API method. I was thinking to have one controller subclass for each kind of widget. Then will instantiate them and will add ther views to a Container view. However ember will create a instance for each controller automatically, so is it a good path to follow? Any suggestion fom the ember.js community?
Thank you for the help.
Rather than a slot for each widget, I would rather have a slot by widget area (column, …), which would be a
ContainerView, into which one I would dynamically add widgets views, according to user’s settings.