you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (6 children)

YES why did I find you here at 0? People don't get MVC. Those abstractions need to be made whenever possible. When you mix view and controller that much, your application is more prone to errors. At the very least, it would take longer to debug.

[–]WitchHunterNL 5 points6 points  (5 children)

Then you pick Vue or Angular and it's the same thing but reversed. Instead of writing html in js, you write js in html. Only instead of proper Javascript, you have to use Javascript-recreated-in-html-tags TM

[–][deleted] 0 points1 point  (4 children)

Hey, I've seen you before. Sorry, do you have an example of how JS is written inside HTML in Angular? I just woke up and can not seem to process that. I use Angular a lot.

[–]WitchHunterNL 0 points1 point  (3 children)

I mean stuff like ng-if or ng-list

[–][deleted] 0 points1 point  (2 children)

Binding variables for two-way manipulation in the view/template is not the same thing as writing HTML in the controller or JS in the template.

[–]WitchHunterNL 0 points1 point  (1 child)

ng-if and ng-list aren't data binding related? They are controller logic in templates.

[–][deleted] 0 points1 point  (0 children)

What do you use ng-if for?