How AngularJS compilation is different from other JavaScript frameworks?

Technology CommunityCategory: AngularJSHow AngularJS compilation is different from other JavaScript frameworks?
VietMX Staff asked 3 years ago

If you have worked on templates in other java script framework/library like backbone and jQuery, they process the template as a string and result as a string. You have to dumped this result string into the DOM where you wanted it with innerHTML().

AngularJS process the template in another way. It directly works on HTML DOM rather than strings and manipulates it as required. It uses two way data-binding between model and view to sync your data.