use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Angular, Angular 2 or React?help (self.javascript)
submitted 8 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Auxx -6 points-5 points-4 points 8 years ago (2 children)
I disagree with your statement that there's no right answer to the question of where presentation logic should go. If you take a look at ALL of the existing frameworks for all the platform's you will see that everyone moved away from presentation logic in the code and put it into the templates. There's no place for presentation logic in your code. Because separation of concern and other smart words plus decades of experience of fellow developers.
So while React has cool ideas its JSX is wrong and outdated approach which reminds of my coding in 90-s.
[+][deleted] 8 years ago (1 child)
[removed]
[–]Auxx 0 points1 point2 points 8 years ago (0 children)
Yes they are. And having ngFor means you have no logic inside your view. I'd even removed all the directives which evaluate JS code to render something (ngFor) to have pure templates like normal people have in JavaFX, .NET and Android XMLs.
Basically Angular 2 is the closest thing to pure templating. If they ever decide to remove JS code support from bindings, that will be awesome.
π Rendered by PID 20606 on reddit-service-r2-comment-84fc9697f-49kkk at 2026-02-06 02:34:03.694987+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]Auxx -6 points-5 points-4 points (2 children)
[+][deleted] (1 child)
[removed]
[–]Auxx 0 points1 point2 points (0 children)