Last post May 30, 2016 06:20 AM by Fei Han - MSFT
May 29, 2016 02:21 PM|superjose|LINK
I just got kicked in my face, and learned about Webpack. Delightfully, Webpack forces me to manually specify the events through js, which means that I must attach the events through pure JS vs embedding them in HTML.
I have decided to implement Typescript 1.8+ for the project and started structuring the project a la Angular (somewhat).
I started structuring the projects like this:
/services (API Calls)
I use exports and imports to gather from different classes. I want to know what is the correct way to create the functions and methods to prevent tight coupling and code reuse.
I want to know if I'm set to the right path.
I'm using MVC 5 and SignalR for the server-side.
May 29, 2016 02:25 PM|superjose|LINK
Is there a resource that could help me to better understand and format my JS applications?
For example, what is the best way to retrieve info from an element's attribute? I used to have all the JS inside the functions. Now I need to abstract them into the parameters (for unit testing capabilities and separation of concerns).
May 29, 2016 02:42 PM|superjose|LINK
Yosh. Already found all of these:
OMG!!!!!! I'M GOING TO DIE @_@. I know I can't do them all, but holy cowsters. Sunday reading, here I come!
May 30, 2016 06:20 AM|Fei Han - MSFT|LINK
Firstly, you could refer to this article to design directory structure for your application.
besides, this article describes a way to build a modular AngularJS application, you could read it.