Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Steal, Components and Templates

$
0
0
It seems like with the previous version of Steal it would watch for the use of can.view() with a url specified.

  1. can.Component.extend({
  2. tag: 'todo-list',
  3. template: can.view('/main/components/todo-list/view.stache'),
  4. scope: {
  5. todos: new Todo.List({})
  6. },
  7. events: {
  8. }
  9. });
Then can.view would be replaced by the view's id property during build.  At least, that's how I hope it will work in the end.

Viewing all articles
Browse latest Browse all 3491

Trending Articles