ember-cli-todo-mvc icon indicating copy to clipboard operation
ember-cli-todo-mvc copied to clipboard

Depreciation of Handlebar syntax - Blog and code.

Open f0ru0l0rd opened this issue 9 years ago • 3 comments

After starting ember serve today, I recieved several of the following messages. This happened as I was working through your example.

DEPRECATION: Using the '{{#each item in model}}' form of the {{#each}} helper (' todo-mvc/templates/todos.hbs' @ L5:C8) is deprecated. Please use the block param form instead ('{{#each model as |item|}}'). See http://emberjs.com/guides/depre cations/#toc_code-in-code-syntax-for-code-each-code for more details. at D:\Sites\todo-mvc\bower_components\ember\ember-template-compiler.js:1 1916:36 at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18280:7) at visitors.ElementNode (D:\Sites\todo-mvc\bower_components\ember\ember- template-compiler.js:18296:16) at Walker.children (D:\Sites\todo-mvc\bower_components\ember\ember-templ ate-compiler.js:18313:7) at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18281:12) at visitors.ElementNode (D:\Sites\todo-mvc\bower_components\ember\ember- template-compiler.js:18296:16) at Walker.children (D:\Sites\todo-mvc\bower_components\ember\ember-templ ate-compiler.js:18313:7) at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18281:12) at visitors.Program (D:\Sites\todo-mvc\bower_components\ember\ember-temp late-compiler.js:18290:16) DEPRECATION: Using '{{input action="createTodo"}}' ('todo-mvc/templates/todos.hb s' @ L1:C0) is deprecated. Please use '{{input enter="createTodo"}}' instead. at D:\Sites\todo-mvc\bower_components\ember\ember-template-compiler.js:1 2139:36 at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18280:7) at visitors.Program (D:\Sites\todo-mvc\bower_components\ember\ember-temp late-compiler.js:18290:16) at Walker.children (D:\Sites\todo-mvc\bower_components\ember\ember-templ ate-compiler.js:18313:7) at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18281:12) at TransformInputOnToOnEvent_transform [as transform](D:Sitestodo-mvc bower_componentsemberember-template-compiler.js:12106:12) at Object.preprocess (D:\Sites\todo-mvc\bower_components\ember\ember-tem plate-compiler.js:17671:27) at compileSpec (D:\Sites\todo-mvc\bower_components\ember\ember-template- compiler.js:12769:37) at Object.exports.default [as precompile](D:Sitestodo-mvcbower_compo nentsemberember-template-compiler.js:12683:12)

It appears that there are several places where the handlebars syntax being used was depreciated. Replacing the former with the new coede caused it to no longer throw errors, but would not iterate over the todos, thus they are all blank.

If it were not for the fact that I eat promises for breakfast, I'd propose a solution to this, but the fact is, I no longer have a solution, and unfortunately one more code example that doesn't work.

f0ru0l0rd avatar Sep 05 '15 21:09 f0ru0l0rd

Thanks. I'm re-writing the tutorial for ember 2.0. Watch this space.

On 5 September 2015 at 22:54, f0ru0l0rd [email protected] wrote:

After starting ember serve today, I recieved several of the following messages. This happened as I was working through your example.

DEPRECATION: Using the '{{#each item in model}}' form of the {{#each}} helper (' todo-mvc/templates/todos.hbs' @ L5:C8) is deprecated. Please use the block param form instead ('{{#each model as |item|}}'). See http://emberjs.com/guides/depre cations/#toc_code-in-code-syntax-for-code-each-code for more details. at D:\Sites\todo-mvc\bower_components\ember\ember-template-compiler.js:1 1916:36 at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18280:7) at visitors.ElementNode (D:\Sites\todo-mvc\bower_components\ember\ember- template-compiler.js:18296:16) at Walker.children (D:\Sites\todo-mvc\bower_components\ember\ember-templ ate-compiler.js:18313:7) at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18281:12) at visitors.ElementNode (D:\Sites\todo-mvc\bower_components\ember\ember- template-compiler.js:18296:16) at Walker.children (D:\Sites\todo-mvc\bower_components\ember\ember-templ ate-compiler.js:18313:7) at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18281:12) at visitors.Program (D:\Sites\todo-mvc\bower_components\ember\ember-temp late-compiler.js:18290:16) DEPRECATION: Using '{{input action="createTodo"}}' ('todo-mvc/templates/todos.hb s' @ L1:C0) is deprecated. Please use '{{input enter="createTodo"}}' instead. at D:\Sites\todo-mvc\bower_components\ember\ember-template-compiler.js:1 2139:36 at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18280:7) at visitors.Program (D:\Sites\todo-mvc\bower_components\ember\ember-temp late-compiler.js:18290:16) at Walker.children (D:\Sites\todo-mvc\bower_components\ember\ember-templ ate-compiler.js:18313:7) at Walker.visit (D:\Sites\todo-mvc\bower_components\ember\ember-template -compiler.js:18281:12) at TransformInputOnToOnEvent_transform as transform at Object.preprocess (D:\Sites\todo-mvc\bower_components\ember\ember-tem plate-compiler.js:17671:27) at compileSpec (D:\Sites\todo-mvc\bower_components\ember\ember-template- compiler.js:12769:37) at Object.exports.default as precompile

It appears that there are several places where the handlebars syntax being used was depreciated. Replacing the former with the new coede caused it to no longer throw errors, but would not iterate over the todos, thus they are all blank.

If it were not for the fact that I eat promises for breakfast, I'd propose a solution to this, but the fact is, I no longer have a solution, and unfortunately one more code example that doesn't work.

— Reply to this email directly or view it on GitHub https://github.com/brownie3003/ember-cli-todo-mvc/issues/4.

geekygrappler avatar Sep 06 '15 08:09 geekygrappler

I was going through your tutorial but I despite following all your instructions, I was never able to get the line-through to work for me and once I implemented the code in your child routes section I had all my content disappear. Are these problems that will be resolved with the Ember 2.0 tutorial?

TheNew000 avatar Sep 11 '15 21:09 TheNew000

The 2.0 tutorial should work. If it does not, email me with the problems and I'll take a look.

Thanks,

Andy On 11 September 2015 at 22:36, TheNew000 [email protected] wrote:

I was going through your tutorial but I despite following all your instructions, I was never able to get the line-through to work for me and once I implemented the code in your child routes section I had all my content disappear. Are these problems that will be resolved with the Ember 2.0 tutorial?

— Reply to this email directly or view it on GitHub https://github.com/brownie3003/ember-cli-todo-mvc/issues/4#issuecomment-139667129 .

geekygrappler avatar Sep 12 '15 10:09 geekygrappler