javascript - structure for jquery in my mvc project -
whats best way of structure jqueryfiles in mvc app. have scripts in script folder , starting difficult have overview.
//thanks
we used following structure on last project:
scripts | |- jquery |- libraries |- infrastructure |- pagespecific
jquery contained jquery , plugins. libraries contained other third-party libraries (e.g. underscore.js). infrastructure contained shared javascript modules, e.g. 1 full of utility functions, or 1 handling server-side account-management communications, etc. pagespecific contained code wire event handlers , page-specific logic.
Comments
Post a Comment