Lets say that I made a todo-list application, and I want three separate todo-lists side my side on screen. How should I go about this?
Eg.
David’s Todos, Jack’s Todos, and Mindy’s Todos
All will have the same interface and features, but will have their own todo list. For instance, they have a heading that contains the name of the list, a add todo button which ads a todo item to the list of todos. You click a pencil icon next to any todo item and it enters an edit mode, where you can change the todos text.
I was thinking that creating a component called “todo-app” in which I would be able to pass a title for the list, and the component handles all of the actions as well as adding new todo items.
Am I sort of on the right track? Mind you, I am still relatively new to ember.js, but I understand a lot of programming theory and what not.
I suppose it could be considered Multitenancy, but basically I want to be able to render three of the same templates and pass a context to it because the todos are stored in my databse in one table
eg.
Id | Title | Todo | Date_Created | Last_Updated | Context
The context field would contain “David, Jack, or Mindy” depending on which context it was created in.
How exactly do I handle the events within the views. Is the isEditing handled by the controller that contains the {{view App.TodoList content=App.Todos}}?