r/webdev • • Oct 18 '18

Angular 7.0.0 released

/r/Angular2/comments/9pbn4f/angular_700_released/
223 Upvotes

148 comments sorted by

View all comments

Show parent comments

3

u/RedditorFor8Years Oct 19 '18

Hi, is it right to say that all the frameworks you've listed above are for SPA only and won't work for multi page applications like e-commerce or blogs etc ? I haven't worked on frameworks like this since angular 1.2. Just wondering if Vue can be used in a e-commerce website..

5

u/E2Ehh Oct 19 '18

All of the above frameworks / libraries can be used in the setup you describe in one way or another.

For Angular, you'd probably want to investigate Angular Elements, which basically package up an Angular app into a "web-component". So include a script on your page, reference the new custom element in your template, and you're done.

https://angular.io/guide/elements

1

u/imhotap Oct 19 '18

React etc. are MVw frameworks for business forms and highly interactive web apps - the entire point is organizing your code around rendering HTML/DOM uniformly in response to user input and other asynchronous events. When you don't have much interactivity on your site eg. mere content and e-commerce sites (including text editors and simple forms) using frameworks is nuts, as HTML browsers are already highly specialized apps for this purpose. You also loose searchability/SEO, content syndication, content workflows such as for product catalogs, accessibility and everything else the Web stands for.

1

u/E2Ehh Oct 19 '18

You'd usually do something like this if you had a mostly static site (or an existing CMS / other server-rendered site) but needed to add a self-contained complicated widget to one page.

SEO is not an issue in situations like this (or if it is, it's entirely possible to server-render Angular / other isomorphic frameworks).

Not sure why you are suggesting accessibility is an issue - that's entirely down to how an application is developed...