Connection between app.js, controller.js, templates?

(HI and sorry for apparently silly questions)

  • What is the relationship between app.js, controller.js, and templates?

  • I understand MVC is involved, but it is not clear to me where the model resides for example?

  • What is the recommended workflow/flowchart for developing controls?