Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:11:51+00:00 2026-06-11T00:11:51+00:00

I am building a web app using Ember. Drag and drop ( and other

  • 0

I am building a web app using Ember. Drag and drop ( and other animations such as automatic slide ) is a significant part of how the user will interact with the app.

I’ve already decided all animation logic will sit by itself in an Ember mixin class vis a vis this blog:

http://www.dynopia.com/index.php/en/blog/article/771/ember-js-animations-with-jquery-animate

However, I am little confused whether I should have two Views per draggable element, one to render the element and one to handle the animation logic?

In addition, after the animations is complete, the current css attributes of the element should be updated in its corresponding model. I can take care of this with a simple two way binding between view and model, ie:

/** element view **/
App.elemOneView = Ember.View.create({
 name: 'element One',
 cssAttr: {},
 ...

});

/** element controller**/
App.elemController = Ember.ArrayController.create({
 content: [],
  ....

});

/** element model **/
App.elemOneModel = Ember.Model.create({
 name: 'element one',
 cssAttrBinding: 'App.elemOneView.cssAttr'
 ...
});

My question is that it frowned upon that model is directly bound to view, even though there is a controller layer in between them? Should I have both view and model sync to an intermediate object?

Note: currently, I plan on declaring view ( for animation logic ) and model ( to store css attributes, among other things ) for each element that appears on the page, so there will be lots of views and models. I should ask whether this is bad too?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:11:52+00:00Added an answer on June 11, 2026 at 12:11 am

    I don’t think what you’re doing is a bad thing, remember that in javascript applications we’ve seen a rise in popularity of MVVM, notice the last two letters – ‘ViewModel’.

    For that reason, I don’t think the relationship is a bad one. but surely one could say otherwise.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a web App using JSF 2.0 and had a jaf-facelets.1.1.10 jar in
I am building a web app using Codeigniter 2.0.3. I need to create base
I'm building a web app to design and animate simple 3d scenes using the
So I'm building a web app using C#.NET, and would like to add a
I am building a facebook platform web app using GWT and hosting it on
I'm building a web app using jquery mobile that will have lots of images
Building my first web app using Yii and wondering if it is best to
I'm building a .net web app and using Forms authentication with cookies to remember
I'm building a self-hosted web app using CodeIgniter and I need a nice GUI-ified
I am currently building a Flex 4 web app using PHP as my backend.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.