The official Ember.js 2.0 release post reads
the use-cases for Controllers have largely been eliminated in Ember 2.0
Is controller been deprecated like views?
No not all controllers have been deprecated as of ember 2.0. The transition to routable components will land somewhere in 2.x so you can still use Ember.Controller. The controllers that have been deprecated though are ObjectController and ArrayController.
Related
I want to know the differences in ember and glimmer.
I know that glimmer is used for components. But why do we need separate part for component called glimmer?
can anyone explain this in detail?
Thanks in advance
Glimmer.js is lightweight library for creating component-based applications while Ember.js is feature-packed framework. You can think of Glimmer.js as View layer of Ember.
In the future you should be able to grab Glimmer.js, and then install your way with dependencies up to Ember.js. For example - you can install Routing from Ember, etc.
Also, Glimmer.js uses TypeScript by default, and its Components are true ES classes. That's why you get better support in editors for writing apps in Glimmer.js.
Similarity between Glimmer.js and Ember.js is that both use Ember CLI for tooling.
I have upgrade ember version in my project and got some exceptions :
Assertion Failed: Using {{view}} or any path based on it
('path/c-text.hbs' # L1:C0) has been removed in
Ember 2.0
how I should change
{{view}}
command?
Views are deprecated in Ember 2.0, you can use the ember-legacy-views addon to add them back in.
This addon enables legacy view support without deprecation notices in Ember.js 1.13. In Ember.js 2.0 views are not present at all, and this addon brings them back. After Ember 2.4 is released this addon will no longer be compatible with Ember. It should be used to provide extra time for migrating away from views, not as a permanent solution.
Is there a summary of the changes or tutorial you need to do to get ember-cli to work with Ember 2? I did a project with Ember like 2 years ago and a potential client was interested in Ember 2. Or is there a new preferred way to build Ember / Rails apps?
Ember-CLI with Ember 2.0 is not released yet. It's still on 1.13.8. I assume they are waiting for all core components to be released under 2.0. E.g. ember-data released 2.0 just few days ago. So I would recommend you to wait for Ember-CLI 2.0 official release. After that you would have to just run ember update.
If you can't wait, you can change dependencies manually in bower.json.
Talking about Ember-CLI and Rails integration, please take a look at this project: https://github.com/rwz/ember-cli-rails
Is there a list somewhere showing the recommended versions of Handlebar to use with each of the Emberjs versions?
The hyperlinks on the Ember website have Ember 1.31 with Handlebar 1.2.1. The Handlebar website has version 1.3 as the most up-to-date download, which I've been using since Ember 1.2. Should I move back to Handlebar 1.2.1 for Ember 1.3.1?
The version tested with the release is the one expected to work correctly.
That being said it doesn't mean the future version of Handlebars won't work with it, but if a breaking change were to occur you may get yourself in trouble.
Handlebars 2.0 is recommended version for ember.js
I am trying to learn Ember.js by following TodoMVC example. I am quite confused on with versions of Ember, Ember Data and Handlebars are compatible. The tutorial states following
Blockquote
The latest release candidate (RC3) of Ember.js can be downloaded directly from the Ember.js website. Ember.js has two dependencies: jQuery and Handlebars. jQuery can be downloaded from at http://jquery.com/ and Handlebars can be downloaded at http://handlebarsjs.com/. This guide uses ember-data for managing model data. The latest development builds of Ember data can be downloaded at http://builds.emberjs.com/. The build compatible with RC3 has the SHA e324f0e.
The Ember RC3 is no longer in download link. It has RC5. Can any one please help me which versions should I use?
Thanks
Currently the latest versions are
handlebars 1.0
ember rc.5
ember-data 0.13
All of those versions were bumped within the last week, so there won't be a lot of information the web just yet. You can download them from their respective websites (for ember-data read the blog post on the emberjs website. The link is in the comments)
I'd suggest you use the latest versions if you're starting out. Not much has changed in ember since RC-3, so you won't miss anything. I suggest you read some of the blog posts on the ember site for the changes in each revision. The team is very good in putting up explanations on the blog regarding updates.