Bonus: Leveraging modules in MediaMan

Just by knowing this much about how modules work in TypeScript, you can certainly already imagine how we could revisit and improve the structure of our TodoIt application. We could place each concept in its own file; for example:

  • mediaman-controller.intf.ts
  • mediaman-controller-impl.ts
  • mediaman-view.intf.ts

This would immediately make our code much easier to read and navigate. As an added benefit, it would also make the dependencies between parts of the system much clearer.

Why don't you go ahead and give it a try?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.39.74