how migrate to ember.js existing page with lot of js
I have start to make a full application using jquery ui and jsplumb. I
want ot make an application which use a lot of ajax and manage model on
client side. I have start to code it manaually. And I discover ember js
and angular. It fit perfectely to my need to have model on client side and
do ajax to save load data. I choose ember for different reason
(handlebars, no intrusive attribut, ...) I have read the documentation and
few tutorial. I see how we make a page and fill it with data from
controler/model. But where do we put code to make the view dynamic. I
mean, we have jqueryui and all things which add dragNDrop, effect,...
which manipulate DOM. I know that ember try to avoid that and prefer
template over dom manipulation but I have ever code that with jquery js
and do not see how to migrate that code to ember. To sum up: I need drag
and drop/ dom manipulation when click on button or when drop element. I
need to handle dbl click to load modal window (loaded in ajax) and del key
to delete content in dom. All this things are easy with jquery/jqueryUI
but do not see where to put that in ember.
My code is to big to be paste here.
Is it possible to load JS script to manage each view ? this js must only
be linked to the view content. To avoid id/class selector colision between
pages.
No comments:
Post a Comment