Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think a better way to phrase #10 is "Don't do DOM manipulation anywhere other than a directive."

If there's a complex jQuery widget (say, a date selector) that works well for you, then wrap it in a simple directive and be done.

I've done this a number of times with no problem.



This is the way to go. Sometimes you just have to build your own from scratch.




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

Search: