HN2new | past | comments | ask | show | jobs | submitlogin

$scope.$apply is necessary because sometimes changes to the model happen outside Angular's event loop.

Ractive doesn't have this issue because updates always happen explicitly with ractive.set( 'key', value ) (or with array mutator methods). It's not quite as magical as Angular's frictionless updates, but it gives you slightly more control (e.g. you can do ractive.animate( 'key', value ) and so on), without needing to inherit from custom observable classes.



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

Search: