Hacker Newsnew | past | comments | ask | show | jobs | submit | john2go1's commentslogin

Wrap the entire app in an IIFE, not every file.


Good estimates will help decide logical codebase size guesses! :)


Using resolve is by far the best option, the creator of Angular wanted a way to do this and the feature landed: http://stackoverflow.com/questions/11972026/delaying-angular...

Structuring files/folders is debatable based on code base size/estimation, no opinion is "wrong".


Structuring files/folders is debatable based on code base size/estimation, no opinion is "wrong".

Yep, that's why he labeled both ways as "good".


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: