How I avoided writing spaghetti code when using AngularJS

How I avoided writing spaghetti code when using AngularJS

I build a big and complex application using AngularJS.

Everyone on the web was using the method $watch.

I realised that it would have made me write a lot of spaghetti code, code nobody can understand and that has to be rewritten from scratch.

It would have caused performance problems as well.

The team that makes AngularJS eventually dropped that method.

I was right.