r/programming • • Mar 18 '14

AngularJS 2.0

http://blog.angularjs.org/2014/03/angular-20.html
213 Upvotes

71 comments sorted by

View all comments

9

u/passwordissame Mar 18 '14

did everyone move away from AJAX as in server responding with (x)html/xsl and client applying those to update DOM?

looks like it's all JSON and manual DOM manipulation.

-9

u/deadstone Mar 18 '14

You're confused; That IS AJAX. AJAX basically means using javascript to change the page instead of going off the page. What you seem to have meant is the traditional way of having each page at a separate url.

11

u/bkv Mar 18 '14

You're confused;

Actually, you're confused. AJAX stands for "Asynchronous Javascript and XML" although it's become a blanket term for asynchronous javascript and XML/JSON.

AJAX basically means using javascript to change the page instead of going off the page.

Nope, that's just DOM manipulation, and people have been doing it long before asynchronous requests were introduced in the browser.

-1

u/deadstone Mar 18 '14

The original question still makes no sense as wrong as I am; They're asking why people are using DOM manipulation instead of DOM manipulation.

11

u/indeh Mar 18 '14

The original question is asking if there are people who still have the server return blocks of HTML which they just insert into the page, or if everybody expects the server to return JSON formatted data and build all the DOM elements on the client side.