0

I have one model that is shared between 2 views. I want to have an error attached to the fetch method that displays an error in both views.

But if I do model.fetch({error:...}), that error would only refer to one view

What is the best way to go about this?

imrane
  • 1,542
  • 2
  • 16
  • 29

1 Answers1

2

trigger an event on the model in error and listen for it in both views.

lecstor
  • 5,619
  • 21
  • 27